Sharing Agents with API Keys
Learn how to create an API key in Odeus and share an agent with it for programmatic access.
Sharing Agents with API Keys
Learn how to create an API key in Odeus and share an agent with it for programmatic access.
This is the Agents API with native Vercel AI SDK compatibility.
An admin needs to create the API key and share the agent with it. If you're not an admin, invite one as an editor to your agent using the "Share" button.
How to create an API key
-
Navigate to Odeus and open the workspace settings from the dropdown menu.
-
Click on API under Products in the sidebar.
-
Click Create API key, enter a name, select the required scopes (at minimum "Assistant API"), and confirm.
-
Copy your API key and store it securely. You won't be able to view it again.
How to share an agent with the API key
-
Navigate to Agents in the sidebar.
-
Create a new agent or select an existing one. Enter at least a name to save it.
-
In the agent editor, click the Share button in the top right corner.
-
The share dialog opens showing current access settings.
-
Search for your API key by name and add it to share the agent with the API.
Only admins can connect an agent with an API key. If you don't see API keys in the share menu, ask an admin to perform this step.
Testing the API connection
Once shared, you can test your agent via the Agent API documentation. Use your API key and the agent ID from the URL (https://app.odeus.ai/agents/AGENT_ID/edit).
Odeus blocks browser-origin requests to protect your API key. For more information, see our guide on API Key Best Practices.
Using MCP: You can also access your agents via the Odeus MCP Server. This lets MCP-compatible AI clients (like Claude Desktop or Cursor) call your agents directly.