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.

  1. Install the SDKpip install agentcompilenpm install agentcompile
  2. Wrap your client
  3. 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 Cookbook

OpenAI-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>"
one install · one line · a conversation id per conversation Names are placeholders.

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.

Book a call

cal.com/agent-compile/beta

To start, we'll ask to see your agent's logs.