Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

update

Sushmithamallesha2029ebfe5d5
diff --git a/fern/docs.yml b/fern/docs.yml
index 08b73ce6a..9090aedf2 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -320,18 +320,9 @@ navigation:
- page: Configuring Custom Auth Configs
path: pages/dist/tool-router/configuring-custom-auth-configs.mdx
slug: configuring-custom-auth-configs
- - page: Configuring Workbench
- path: pages/dist/tool-router/configuring-workbench.mdx
- slug: configuring-workbench
- page: Using with MCP Clients
path: pages/dist/tool-router/using-with-mcp-clients.mdx
slug: using-with-mcp-clients
- # - page: Using as Native Tools
- # path: pages/dist/tool-router/using-as-native-tools.mdx
- # slug: using-as-native-tools
- - page: Handling Files
- path: pages/dist/tool-router/file-upload-download.mdx
- slug: file-upload-download
- tab: providers
layout:
- section: Supported Providers
diff --git a/fern/pages/src/tool-router/quickstart.mdx b/fern/pages/src/tool-router/quickstart.mdx
index 881bc2c7e..3a4f3cce5 100644
--- a/fern/pages/src/tool-router/quickstart.mdx
+++ b/fern/pages/src/tool-router/quickstart.mdx
@@ -6,16 +6,21 @@ keywords: "tool router quickstart, quickstart"
hide-nav-links: false
---
-Build an agent that summarizes your Gmail inbox.
+Build an interactive agent with access to 1000+ tools.
<Tabs>
-<Tab title="OpenAI (TypeScript)">
+<Tab title="OpenAI Agents SDK">
<Steps>
-<Step title="Install Composio SDK">
-```bash
+<Step title="Install">
+<CodeGroup>
+```bash title="Python" for="python"
+pip install composio openai-agents
+```
+```bash title="TypeScript" for="typescript"
npm install @composio/core @openai/agents
```
+</CodeGroup>
</Step>
<Step title="Create session and run agent">
@@ -29,13 +34,17 @@ npm install @composio/core @openai/agents
When the agent needs authentication, it will prompt the user with a link to connect their account. If you want to customise the authentication flow and have more control over the user experience, see [Manual Authentication](/tool-router/manually-authenticating-users).
-<SnippetCode src="fern/snippets/tool-router/typescript/quickstart-openai.ts" />
+<CodeGroup>
+<SnippetCode src="fern/snippets/tool-router/python/quickstart-openai.py" title="Python" for="python" />
+<SnippetCode src="fern/snippets/tool-router/typescript/quickstart-openai.ts" title="TypeScript" for="typescript" />
+</CodeGroup>
+
</Step>
</Steps>
</Tab>
-<Tab title="Vercel AI SDK (Anthropic)">
+<Tab title="Vercel AI SDK">
<Steps>
<Step title="Install Composio SDK">
diff --git a/fern/snippets/tool-router/python/quickstart-openai.py b/fern/snippets/tool-router/python/quickstart-openai.py
new file mode 100644
index 000000000..082fe416e
--- /dev/null
+++ b/fern/snippets/tool-router/python/quickstart-openai.py
@@ -0,0 +1,38 @@
+import os
+from composio import Composio
+from agents import Agent, Runner, HostedMCPTool, ModelSettings
+
+composio_api_key = os.environ.get("COMPOSIO_API_KEY")
+user_id = "user_123" # Your user's unique identifier
+
+composio = Composio()
+session = composio.create(user_id=user_id)
+
+agent = Agent(
+ name="Personal Assistant",
+ instructions="You are a helpful personal assistant. Use Composio tools to take action.",
+ model="gpt-5.1",
+ model_settings= ModelSettings(
+ reasoning={"effort": "low"},
+ ),
+ tools=[
+ HostedMCPTool(
+ tool_config={
+ "type": "mcp",
+ "server_label": "composio",
+ "server_url": session.mcp.url,
+ "require_approval": "never",
+ "headers": {"x-api-key": composio_api_key},
+ }
+ )
+ ],
+)
+
+print("Assistant: What would you like me to do today?\n")
+
+while True:
+ user_input = input("> ")
+ if user_input == "exit":
+ break
+ result = Runner.run_sync(starting_agent=agent, input=user_input)
+ print(f"Assistant: {result.final_output}\n")
diff --git a/fern/snippets/tool-router/typescript/quickstart-openai.ts b/fern/snippets/tool-router/typescript/quickstart-openai.ts
index ab1d244fe..5525ae384 100644
--- a/fern/snippets/tool-router/typescript/quickstart-openai.ts
+++ b/fern/snippets/tool-router/typescript/quickstart-openai.ts
@@ -27,10 +27,11 @@ const agent = new Agent({
});
const rl = createInterface({ input: process.stdin, output: process.stdout });
+console.log("Assistant: What would you like me to do today?\n");
while (true) {
- const input = await rl.question("You: ");
+ const input = await rl.question("> ");
if (input === "exit") break;
const result = await run(agent, input);
- console.log(`Agent: ${result.finalOutput}\n`);
+ console.log(`Assistant: ${result.finalOutput}\n`);
}
rl.close();