Open Agent SDK Python — Development skill for Claude Code
Open-source Agent SDK for Python.
How to install Open Agent SDK Python
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open codeany-ai/open-agent-sdk-python and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Open Agent SDK Python does
Open-source Agent SDK for Python. Runs the full agent loop in-process — no CLI required.
Alternatives in Development
- MCP Python SDK — Python SDK for building MCP servers 22.3k ★
- Claude Code SDK Python — The official Python SDK for Claude Code 5.6k ★
- Anthropic SDK Python — PyPI version 3.9k ★
README
Open Agent SDK (Python)
[](https://pypi.org/project/open-agent-sdk/) [](https://python.org) [](./LICENSE)
Open-source Agent SDK that runs the full agent loop **in-process** — no subprocess or CLI required. Deploy anywhere: cloud, serverless, Docker, CI/CD.
Also available in **TypeScript**: [open-agent-sdk-typescript](https://github.com/codeany-ai/open-agent-sdk-typescript) · **Go**: [open-agent-sdk-go](https://github.com/codeany-ai/open-agent-sdk-go)
Features
- Multi-Provider — Anthropic + OpenAI-compatible APIs (DeepSeek, Qwen, vLLM, Ollama) via unified provider abstraction
- Agent Loop — Streaming agentic loop with tool execution, multi-turn conversations, and cost tracking
- 35 Built-in Tools — Bash, Read, Write, Edit, Glob, Grep, WebFetch, WebSearch, Agent (subagents), Skill, and more
- Skill System — Reusable prompt templates with 5 bundled skills (commit, review, debug, simplify, test)
- MCP Support — Connect to MCP servers via stdio, HTTP, and SSE transports
- Permission System — Configurable tool approval with allow/deny rules and custom callbacks
- Hook System — 20 lifecycle events for agent behavior interception
- Session Persistence — Save/load/fork conversation sessions
- Custom Tools — Define tools with Pydantic models or raw JSON schemas
- Extended Thinking — Claude thinking budget configuration
- Cost Tracking — Per-model token usage with accurate pricing (Anthropic + OpenAI + DeepSeek + Qwen)
Get started
pip install open-agent-sdk
Set your API key:
export CODEANY_API_KEY=your-api-key
Third-party providers (e.g. OpenRouter) are supported via `CODEANY_BASE_URL`:
export CODEANY_BASE_URL=https://openrouter.ai/api
export CODEANY_API_KEY=sk-or-...
export CODEANY_MODEL=anthro
Related Skills
Claude Agent SDK Dotnet
A modern .NET library for interacting with the Claude Code CLI, with full Python SDK parity.
Open Agent SDK TypeScript
Agent-SDK without CLI dependencies, as an alternative to claude-agent-sdk, completely open source
Alan Code Agent
Open-source Python implementation of a Claude-Code-like agent (Gemini CLI, Codex, Copilot...). Usable in CLI,
Opentechalyzer
Free, open source website technology detection. Identify any site's full tech stack from its URL — CLI, librar
License
Check that every Python source file carries the required SPDX Apache-2.0 license header:
Monitor Log Agent
An example of a read-only Claude Code agent: a Python host prepares context, then Claude Agent SDK runs the ag
Related Agents
Otherness.Learn
Learn from open-source projects and agent systems in the wild. Extracts reusable patterns from codebases, AGEN
Claudable
by Ethan Park - Claudable is an open-source web builder that leverages local CLI agents, such as Claude Code a
OSS Maintainer
Mantiene la higiene open source de las piezas del paraguas ai-native (cli, skills, mcp). Úsalo antes de public