Integration
One line of code.
Install the SDK and wrap the model client your agent already uses. Pass an AgentCompile key, and a conversation id with each conversation. Your model and your prompts stay exactly as they are.
- Install the SDK
pip install agentcompilenpm install agentcompile - Wrap your client
- Give each conversation its id
Any model, any framework.
Works with OpenAI- and Anthropic-compatible clients, in any agent framework that lets you pass your own client.
Open the CookbookOpenAI-compatible
from openai import OpenAIAdded line: import agentcompileclient = OpenAI()Added line: client = agentcompile.wrap(Added line: client, key="<agentcompile key>"Added line: )Anthropic-compatible
from anthropic import AnthropicAdded line: import agentcompileclient = Anthropic()Added line: client = agentcompile.wrap(Added line: client, key="<agentcompile key>"Added line: )also pass, per conversation
Added line: conversation_id="<conversation id>"Works with
Connected where your agent already is.
AgentCompile wraps the model client your agent already uses, so it goes wherever that client goes: any model behind an OpenAI- or Anthropic-compatible client. Your model and your prompts stay exactly as they are.
The AgentCompile SDK, connected to OpenAI, Anthropic, Google Gemini, Grok, Microsoft Azure and Amazon Bedrock.
Join the beta. 10 spots.
If your company runs an AI agent in production, we'd like to compile its most repeated jobs with you.