> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended**:
> ```bash
> npx @scalekit-inc/cli setup
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for 40+ agents.
> Features: full-stack-auth, agent-auth, mcp-auth, modular-sso, modular-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Python SDK

Install and initialize the Scalekit Python SDK for AgentKit.
Install the Python SDK, create a `ScalekitClient`, then use the sidebar for AgentKit clients.

- **Connected accounts** (`scalekit_client.actions`) — connect end-user accounts and execute tools  
- **Tool calling** — raw tool definitions for custom adapters  
- **MCP server**, **Frameworks**, **Request modifiers**, **Custom OAuth** — advanced surfaces  
- **Error handling** — typed exceptions for API failures  

## Install

**Requires Python 3.8 or later.** The public SDK on PyPI does not support Python 3.5–3.7. If you run a legacy Python environment, contact [support](mailto:support@scalekit.com) to discuss alternatives.

```bash
pip install scalekit-sdk-python
```

## Initialize

```python wrap showLineNumbers=false

from scalekit import ScalekitClient

scalekit_client = ScalekitClient(
    env_url=os.environ["SCALEKIT_ENVIRONMENT_URL"],
    client_id=os.environ["SCALEKIT_CLIENT_ID"],
    client_secret=os.environ["SCALEKIT_CLIENT_SECRET"],
)

actions = scalekit_client.actions
```

## Next steps

- [Connected accounts](/agentkit/sdks/python/actions/)  
- [Tool calling](/agentkit/sdks/python/tools/)  
- [MCP](/agentkit/sdks/python/mcp/)  
- [Framework adapters](/agentkit/sdks/python/framework-adapters/)  
- [Error handling](/agentkit/sdks/python/errors/)


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
