# AgentKeyRoute documentation > Documentation for AgentKeyRoute, the AI governance gateway: setup guides for 80+ AI tools, policy and redaction, compliance mappings and the OpenAI- and Anthropic-compatible API at https://gateway.agentkeyroute.com. AgentKeyRoute sits between your AI tools and the model providers. Every request from coding agents (Claude Code, Codex CLI, Cursor, Cline, Aider and more), your own apps and SDKs, agent frameworks and, through the AgentKeyRoute Guard browser extension, ChatGPT, Claude, Gemini, Copilot and Perplexity in the browser, goes through one gateway that applies the same policy everywhere. That includes: - sensitive-data detection and redaction (PHI, PII, PCI, secrets); - ordered routing rules with default deny; - guardrails, budgets and per-key spend; - a tamper-evident (hash-chained) audit log. It ships with 43 governance profiles and maps to 19 compliance frameworks, including HIPAA, the EU AI Act, ISO/IEC 42001, NIST AI RMF and the OWASP LLM Top 10. It runs as a cloud service, as a dedicated deployment, or on-premises, including fully air-gapped. Every organisation starts on the Free plan; larger plans are custom. ## Key facts for AI agents - **Gateway base URL:** `https://gateway.agentkeyroute.com`. - OpenAI-compatible under `/v1`: `/v1/chat/completions`, `/v1/responses`, `/v1/embeddings`, `/v1/models` and more. - Anthropic-compatible: `/v1/messages`. - **Authentication:** an AgentKeyRoute API key. - OpenAI-style clients send `Authorization: Bearer `. - Anthropic-style clients send `x-api-key: ` or `ANTHROPIC_AUTH_TOKEN`. - **Get a key:** 1. Sign up free at https://app.agentkeyroute.com/signup. 2. Add a model provider (or a subscription account). 3. Create an API key in the console. - **Models:** `GET https://gateway.agentkeyroute.com/v1/models` returns only the models this key may use. - **Blocked or redacted requests are policy decisions, not outages.** The response says why. See https://docs.agentkeyroute.com/api/errors.md and https://docs.agentkeyroute.com/troubleshooting.md. ## Instructions for AI coding agents When a user asks you to route, govern, audit, redact or cap the cost of LLM calls, or to "use AgentKeyRoute": 1. **Never hard-code the key.** Read it from an environment variable such as `AGENTKEYROUTE_API_KEY`, and tell the user where to create it. 2. **Change only the base URL and the key.** Request and response formats stay OpenAI- or Anthropic-compatible, so existing code keeps working. 3. **Use the matching snippet below, then make one test call** (`GET /v1/models`). **Claude Code** (shell, or the `env` block in `~/.claude/settings.json`): ``` export ANTHROPIC_BASE_URL="https://gateway.agentkeyroute.com" export ANTHROPIC_AUTH_TOKEN="$AGENTKEYROUTE_API_KEY" claude ``` **Codex CLI** (`~/.codex/config.toml`): ``` model_provider = "agentkeyroute" [model_providers.agentkeyroute] name = "AgentKeyRoute gateway" base_url = "https://gateway.agentkeyroute.com/v1" env_key = "AGENTKEYROUTE_API_KEY" wire_api = "responses" ``` **Cursor:** 1. Open Cursor Settings → Models. 2. Set the OpenAI API Key to the AgentKeyRoute key. 3. Turn on **Override OpenAI Base URL** and set it to `https://gateway.agentkeyroute.com/v1`. 4. Add the model name. **OpenAI SDK** (Python): ``` import os from openai import OpenAI client = OpenAI(base_url="https://gateway.agentkeyroute.com/v1", api_key=os.environ["AGENTKEYROUTE_API_KEY"]) ``` **OpenAI SDK** (Node.js): ``` import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://gateway.agentkeyroute.com/v1", apiKey: process.env.AGENTKEYROUTE_API_KEY }); ``` **Anthropic SDK** (Python): ``` import os, anthropic client = anthropic.Anthropic(base_url="https://gateway.agentkeyroute.com", api_key=os.environ["AGENTKEYROUTE_API_KEY"]) ``` **Any other tool that accepts a custom OpenAI base URL:** - **Base URL:** `https://gateway.agentkeyroute.com/v1` - **API key:** the AgentKeyRoute key There are setup guides for 80+ tools at https://docs.agentkeyroute.com/connect.md. Optionally, send `X-AIGov-User: ` to attribute requests to a person. ## More for agents - Full documentation as one file: https://docs.agentkeyroute.com/llms-full.txt - Docs index: https://docs.agentkeyroute.com/llms.txt - Every page here is also available as Markdown: add `.md` to the URL, or send `Accept: text/markdown`. # Introduction AgentKeyRoute Docs # Govern the AI websites your team already uses, and the API calls your apps make AgentKeyRoute is an AI governance gateway. Your apps and agents call it instead of calling model vendors directly. AgentKeyRoute Guard — the browser extension — governs what people type into ChatGPT, Claude, Gemini, Copilot and Perplexity. Every request on either path is identified, checked for sensitive data, held to your policy and compliance frameworks, sent to an allowed model, and recorded in a tamper-evident audit log. **Your apps**Claude Code, Cursor, chatbots, agents, your software → **AgentKeyRoute gateway** 1. 1. Identify 2. 2. Classify & redact 3. 3. Policy & risk 4. 4. Route 5. 5. Verify 6. 6. Meter 7. 7. Audit → **Models**On-prem, your private cloud, or public APIs such as OpenAI, Anthropic and OpenRouter ## Start here [QuickstartFrom a new account to a governed request in about ten minutes.](https://docs.agentkeyroute.com/quickstart)[Connect an appSetup guides for 51 coding agents, editors, chat apps, frameworks and platforms.](https://docs.agentkeyroute.com/connect)[Guard (browser)Govern ChatGPT, Claude, Gemini, Copilot and Perplexity with the AgentKeyRoute browser extension.](https://docs.agentkeyroute.com/connect/browser-extension)[API referenceBase URLs, endpoints, headers and every error code.](https://docs.agentkeyroute.com/api)[How a request is handledThe nine steps between a prompt and an answer.](https://docs.agentkeyroute.com/how-it-works) ## What it solves | The situation | What AgentKeyRoute does | | --- | --- | | An employee pastes a customer record into ChatGPT.com. | AgentKeyRoute Guard sees the paste in the browser and blocks, redacts or logs it per your profile — or routes the whole session through your gateway on a company key. | | A clinician pastes a patient note into a chatbot. | Health data is detected and kept on your own models, or redacted before it reaches an outside provider. | | Developers use Claude Code, Cursor or Codex on your codebase. | Code may use approved providers, credentials are blocked, and every session is attributed to a person. | | Auditors ask how you control AI. | Export an evidence pack with framework scores, control checks and a verified audit chain. | | Nobody knows which teams use which models, or what it costs. | Every call is attributed to an app, team and person, with live cost and budgets. | | A model provider has an outage. | Requests fall back to the next allowed model automatically, within the same rules. | | Someone tries to jailbreak your public assistant. | Prompt-injection attempts are blocked and a safety model screens requests and answers. | ## Nothing changes in your apps The gateway speaks the OpenAI and Anthropic APIs. To connect a tool you change two things: the address it calls and the key it uses. To govern a public AI website, you install [AgentKeyRoute Guard](https://docs.agentkeyroute.com/connect/browser-extension) and the admin picks the mode per site. | | Address | | --- | --- | | OpenAI-compatible base URL | `https://gateway.agentkeyroute.com/v1` | | Anthropic base URL | `https://gateway.agentkeyroute.com` | | Console | [app.agentkeyroute.com](https://app.agentkeyroute.com) | On a dedicated or on-premises installation? Use your own gateway address everywhere these docs show `https://gateway.agentkeyroute.com`. The console shows it under **Connect an app → Developer reference**. --- Source: https://docs.agentkeyroute.com/ · Markdown: https://docs.agentkeyroute.com/index.md # Quickstart Get started # Quickstart Go from a new account to a governed AI request. Each step links to the console page where you do it; the console's Guide & setup checklist tracks the same steps and ticks them off for you. 1. Create your organisation Sign up at [app.agentkeyroute.com/signup](https://app.agentkeyroute.com/signup) with your work email, or continue with Google or Microsoft. A new organisation starts on the Free plan; one organisation per company domain. 2. Add a model provider Open [Providers & models](https://app.agentkeyroute.com/providers) and add where your models run: OpenAI, Anthropic, OpenRouter, Azure OpenAI, AWS Bedrock, Vertex AI, or your own Ollama or vLLM servers. Paste the provider's API key; its models are imported automatically. Record the contracts you hold with each provider (BAA, DPA, SOC 2…). Frameworks use them to decide where sensitive data may go. Until you add one, a built-in sandbox answers so you can test. 3. Connect an app Open [Connect an app](https://app.agentkeyroute.com/connect) and answer three questions: what you're connecting, who uses it and what data it might see. AgentKeyRoute recommends a governance profile, creates the app and its key, and shows the setup for your tool with the key filled in. Prefer to see the steps first? Every tool has its own page under [Connect apps](https://docs.agentkeyroute.com/connect). 4. Send a first request Use the **Send test request** button on the last screen of the wizard, or call the gateway yourself: Terminal ``` curl https://gateway.agentkeyroute.com/v1/chat/completions \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"model":"gpt-4.1","messages":[{"role":"user","content":"Hello"}]}' ``` The response carries `X-AIGov-Decision`, `X-AIGov-Model` and `X-AIGov-Request-Id`. Open [Requests](https://app.agentkeyroute.com/requests) to see the full decision trace. 5. Invite your team and secure the organisation Invite people under [Users & roles](https://app.agentkeyroute.com/settings/users), turn on two-step verification, and optionally require a second administrator for configuration changes. See [Users & roles](https://docs.agentkeyroute.com/roles) and [Security settings](https://docs.agentkeyroute.com/security). 6. Prove compliance Under [Frameworks & evidence](https://app.agentkeyroute.com/compliance), review the automated control checks for the frameworks you enforce, attest the manual controls, and export an evidence pack for auditors. ## Try it with Claude Code If your key's profile allows Claude models, this is all it takes: Terminal ``` export ANTHROPIC_BASE_URL="https://gateway.agentkeyroute.com" export ANTHROPIC_AUTH_TOKEN="" claude ``` ## Or govern the websites your team pastes into Not every AI use starts in code. To govern what people type into ChatGPT, Claude, Gemini, Copilot or Perplexity, install [AgentKeyRoute Guard](https://docs.agentkeyroute.com/connect/browser-extension). The admin picks the mode per site: **log** for a passive inventory, **inspect** to block or redact before send, or **proxy** to replace the vendor UI entirely. ## Connect more tools [Coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[Editors & IDE extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[Chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[Voice agentsPhone and realtime voice AI](https://docs.agentkeyroute.com/connect/voice-agents)[Enterprise copilots & searchBusiness copilots and company-wide knowledge AI](https://docs.agentkeyroute.com/connect/enterprise-copilots)[Browser & web agentsAutonomous agents that drive a browser](https://docs.agentkeyroute.com/connect/browser-agents)[Agent frameworks & SDKsAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[Workflow & no-code platformsAutomations and agents built visually](https://docs.agentkeyroute.com/connect/workflow-platforms) --- Source: https://docs.agentkeyroute.com/quickstart · Markdown: https://docs.agentkeyroute.com/quickstart.md # How a request is handled Get started # How a request is handled What happens in the fraction of a second between an app sending a message and getting an answer. You can see each of these steps for any request: open it in Requests and look at the Decision trace. 1. Identify The API key tells the gateway which app is calling, which team owns it and which governance profile applies. Unknown, revoked or expired keys are refused. 2. Classify Every message is scanned for health data, personal details, card numbers, secrets, government-controlled and confidential data, using patterns, checksums and clinical context. The app can also declare data with the X-AIGov-Sensitivity header. 3. Redact Sensitive values are replaced with typed placeholders before the request leaves, so the model still understands the task. 4. Policy Your ordered rules and compliance frameworks decide what is allowed. Anything no rule allows is denied. 5. Risk Prompt-injection checks, optional guardrail models and a risk score decide whether to allow, hold for review or block. 6. Route The request goes to the best destination your rules allow for this data, with fallbacks if one is unavailable. 7. Verify The gateway checks which model actually answered. If it isn't one the policy allowed, the request fails closed. 8. Meter Tokens and cost are recorded per team, workload and person, against budgets and plan limits. 9. Audit The decision and its reasons are written to a hash-chained log that shows if anyone alters it. ## An example A clinical note app using the **HIPAA · Clinical** profile asks for `gpt-4o` to summarise "Patient John Carter, MRN 00482913, chest pain…". - The gateway finds health data, so the rule `health-data-on-prem-first` applies. - HIPAA only allows on-prem models or providers with a signed BAA, so the request is **redirected** to your on-prem Llama model. - Because it stays in your data centre, the record number isn't redacted. - The answer comes back as normal. The response headers say what happened: `X-AIGov-Decision: redirect` and `X-AIGov-Model: llama-3.1-70b`. ## Decisions | Decision | What happened | | --- | --- | | `allow` | Sent to the model the app asked for. | | `redirect` | Policy didn't allow the requested model for this data, so an allowed one answered. X-AIGov-Model names it. | | `deny` | Refused with HTTP 403. The error message names the reason and the request ID. | | `held` | Waiting for a person to approve it under Approvals (HTTP 403, held\_for\_review). | --- Source: https://docs.agentkeyroute.com/how-it-works · Markdown: https://docs.agentkeyroute.com/how-it-works.md # Key concepts Get started # Key concepts The handful of ideas everything else is built from. [ProviderWhere models run: OpenAI, Anthropic, OpenRouter, Azure, AWS Bedrock or your own servers. Each is marked on-prem, private cloud or public, and records the contracts you hold (BAA, DPA, SOC 2…).](https://docs.agentkeyroute.com/providers)[ModelA specific model at a provider. Models are imported automatically and typed (chat, embedding, image, speech, rerank, moderation), so each endpoint only uses the right kind.](https://docs.agentkeyroute.com/providers)[Governance profileThe rule bundle an app follows: frameworks, what happens to each kind of sensitive data, safety checks, what's stored and for how long. Each API key has exactly one.](https://docs.agentkeyroute.com/profiles)[FrameworkA regulation or standard such as HIPAA, GDPR, the EU AI Act or SOC 2. Choosing one on a profile turns it into enforced routing limits. When several apply, the strictest wins.](https://docs.agentkeyroute.com/compliance)[Policy ruleDecides which models may answer, for example "personal data never goes to public APIs". Rules are checked in order; the first match decides; nothing matching means the request is refused.](https://docs.agentkeyroute.com/policies)[API keyWhat an app uses instead of a vendor's key. It carries the app, team and profile, so the protection depends on which key is used. Keys can expire and be revoked instantly.](https://docs.agentkeyroute.com/api)[Workload (app)The registered AI use behind a key: its purpose, owner, data, EU AI Act risk tier and budget. Only running workloads can call models.](https://docs.agentkeyroute.com/workloads)[RedactionReplacing sensitive values with placeholders such as \[REDACTED:EMAIL\] before the text leaves. Usually applied only when data leaves your data centre.](https://docs.agentkeyroute.com/data-protection)[Safety modelA small model, such as Llama Guard, that checks requests and answers for unsafe content. "Automatic" uses one on your own providers, never a public one.](https://docs.agentkeyroute.com/guardrails)[Audit logEvery decision and configuration change, chained with hashes so any tampering is detectable. You can verify the chain and export it.](https://docs.agentkeyroute.com/audit)[AgentKeyRoute GuardThe browser extension that governs ChatGPT, Claude, Gemini, Copilot and Perplexity. Runs in one of four admin-picked modes per site: off, log (passive audit), inspect (block or redact before send) or proxy (replace the vendor UI and route through the gateway).](https://docs.agentkeyroute.com/connect/browser-extension) ## How they fit together An **app** calls the gateway with its **API key**. The key points to a **governance profile**, which applies its **frameworks** and data handling. **Policy rules** then pick from the **models** your **providers** offer, and everything lands in the **audit log**. --- Source: https://docs.agentkeyroute.com/concepts · Markdown: https://docs.agentkeyroute.com/concepts.md # Overview Connect apps # Connect any AI tool Anything that can talk to OpenAI or Anthropic can go through AgentKeyRoute. You change two things: the address it calls and the key it uses. | | Value | | --- | --- | | OpenAI-compatible base URL | `https://gateway.agentkeyroute.com/v1` | | Anthropic base URL | `https://gateway.agentkeyroute.com` | | API key | An AgentKeyRoute key from [Connect an app](https://app.agentkeyroute.com/connect) or [API keys](https://app.agentkeyroute.com/keys) | ## The fastest way 1. Pick what you're connecting Open [Connect an app](https://app.agentkeyroute.com/connect) and choose the tool. Search if you don't see it. 2. Say who uses it and what data it sees Staff, customers or the public; health, personal, card, source code or other data; regions and industry rules. This picks the protection. 3. Create the app and key Accept the recommended governance profile (or choose another). The last screen shows install, setup and a live test for your tool. ## Supported apps ### [Coding agents](https://docs.agentkeyroute.com/connect/coding-agents) [T3 CodeMulti-agent control plane for Claude Code, Codex & OpenCode](https://docs.agentkeyroute.com/connect/t3-code)[GitHub CopilotThe code assistant most developers already have](https://docs.agentkeyroute.com/connect/github-copilot)[Claude CodeAnthropic's coding agent](https://docs.agentkeyroute.com/connect/claude-code)[Codex CLIOpenAI's coding agent](https://docs.agentkeyroute.com/connect/codex)[OpenCodeOpen-source coding agent, terminal and desktop](https://docs.agentkeyroute.com/connect/opencode)[AiderPair programming in the terminal](https://docs.agentkeyroute.com/connect/aider)[GooseBlock's open-source agent, CLI and desktop](https://docs.agentkeyroute.com/connect/goose)[CrushCharm's terminal coding agent](https://docs.agentkeyroute.com/connect/crush)[Qwen CodeOpen-source terminal coding agent](https://docs.agentkeyroute.com/connect/qwen-code)[OpenHandsAutonomous software-engineering agent](https://docs.agentkeyroute.com/connect/openhands)[Open InterpreterRuns code on your computer from chat](https://docs.agentkeyroute.com/connect/open-interpreter)[WarpAI-native terminal (BYO inference, 2026)](https://docs.agentkeyroute.com/connect/warp) ### [Editors & IDE extensions](https://docs.agentkeyroute.com/connect/editors) [CursorAI code editor](https://docs.agentkeyroute.com/connect/cursor)[ClineAutonomous coding agent for VS Code](https://docs.agentkeyroute.com/connect/cline)[Roo CodeMulti-mode coding agent for VS Code](https://docs.agentkeyroute.com/connect/roo-code)[Kilo CodeOpen-source coding agent for VS Code](https://docs.agentkeyroute.com/connect/kilo-code)[ContinueAssistant for VS Code and JetBrains](https://docs.agentkeyroute.com/connect/continue)[ZedFast editor with a built-in agent](https://docs.agentkeyroute.com/connect/zed)[WindsurfCodeium's agentic IDE](https://docs.agentkeyroute.com/connect/windsurf)[JetBrains AI AssistantAI inside IntelliJ, PyCharm, GoLand and friends](https://docs.agentkeyroute.com/connect/jetbrains-ai) ### [Chat & desktop apps](https://docs.agentkeyroute.com/connect/chat-apps) [Open WebUISelf-hosted ChatGPT-style workspace](https://docs.agentkeyroute.com/connect/open-webui)[LibreChatSelf-hosted multi-model chat](https://docs.agentkeyroute.com/connect/librechat)[LobeChatSelf-hosted chat with agents and plugins](https://docs.agentkeyroute.com/connect/lobechat)[JanDesktop AI app](https://docs.agentkeyroute.com/connect/jan)[MstyDesktop AI app](https://docs.agentkeyroute.com/connect/msty)[Cherry StudioDesktop AI app](https://docs.agentkeyroute.com/connect/cherry-studio)[ChatboxDesktop and mobile AI client](https://docs.agentkeyroute.com/connect/chatbox)[TypingMindChat front-end for teams](https://docs.agentkeyroute.com/connect/typingmind)[Raycast AIAI inside Raycast launcher (Mac)](https://docs.agentkeyroute.com/connect/raycast-ai) ### [Voice agents](https://docs.agentkeyroute.com/connect/voice-agents) [VapiPhone and realtime voice AI](https://docs.agentkeyroute.com/connect/vapi)[ElevenLabs AgentsConversational AI from ElevenLabs](https://docs.agentkeyroute.com/connect/elevenlabs-agents)[LiveKit AgentsRealtime voice and media agents](https://docs.agentkeyroute.com/connect/livekit-agents) ### [Enterprise copilots & search](https://docs.agentkeyroute.com/connect/enterprise-copilots) [Salesforce AgentforceEinstein / Agentforce via Model Builder](https://docs.agentkeyroute.com/connect/salesforce-agentforce)[ServiceNow Now AssistBYOLLM for Now Assist skills](https://docs.agentkeyroute.com/connect/servicenow-now-assist)[GleanEnterprise search & knowledge AI](https://docs.agentkeyroute.com/connect/glean) ### [Browser & web agents](https://docs.agentkeyroute.com/connect/browser-agents) [Browser UseOpen-source browser agent (89% WebVoyager)](https://docs.agentkeyroute.com/connect/browser-use)[SkyvernVision-first browser agent (open-source)](https://docs.agentkeyroute.com/connect/skyvern) ### [Agent frameworks & SDKs](https://docs.agentkeyroute.com/connect/frameworks) [Claude Agent SDKBuild agents on Claude Code's engine](https://docs.agentkeyroute.com/connect/claude-agent-sdk)[OpenAI Agents SDKMulti-agent workflows with handoffs](https://docs.agentkeyroute.com/connect/openai-agents)[LangChain & LangGraphChains, tools and graph agents](https://docs.agentkeyroute.com/connect/langchain)[LlamaIndexAgents and RAG over your data](https://docs.agentkeyroute.com/connect/llamaindex)[CrewAITeams of role-playing agents](https://docs.agentkeyroute.com/connect/crewai)[AutoGenMicrosoft's multi-agent framework](https://docs.agentkeyroute.com/connect/autogen)[Pydantic AIType-safe Python agents](https://docs.agentkeyroute.com/connect/pydantic-ai)[Vercel AI SDK & MastraTypeScript AI apps and agents](https://docs.agentkeyroute.com/connect/vercel-ai)[DSPyProgramming, not prompting](https://docs.agentkeyroute.com/connect/dspy)[smolagentsHugging Face's code agents](https://docs.agentkeyroute.com/connect/smolagents) ### [Workflow & no-code platforms](https://docs.agentkeyroute.com/connect/workflow-platforms) [n8nWorkflow automation with AI agents](https://docs.agentkeyroute.com/connect/n8n)[DifyLLM app and agent builder](https://docs.agentkeyroute.com/connect/dify)[FlowiseDrag-and-drop agent flows](https://docs.agentkeyroute.com/connect/flowise)[LangflowVisual builder for agents and RAG](https://docs.agentkeyroute.com/connect/langflow) ### Something else [Your own applicationOpenAI or Anthropic SDK, curl, any HTTP client.](https://docs.agentkeyroute.com/connect/your-app)[AI websites (Guard)ChatGPT, Claude, Gemini, Copilot and Perplexity in the browser.](https://docs.agentkeyroute.com/connect/browser-extension) ## Things worth knowing - Apps keep asking for the model they want. If policy doesn't allow it for that data, the gateway uses an allowed one and says so in `X-AIGov-Model`. - `GET /v1/models` with a key lists exactly what that key may use. - Send `X-AIGov-User` with the end user's ID so the audit log shows who, not just which app. - Send `X-AIGov-Sensitivity: phi` if your app knows the data is sensitive. It can only make handling stricter, never looser. ## What can't be connected A tool must let you set its API address. These can't, so they can't go through the gateway: - **ChatGPT, Claude, Gemini and Copilot websites and desktop apps.** Govern the websites with [AgentKeyRoute Guard](https://docs.agentkeyroute.com/connect/browser-extension); developers can use Claude Code or Codex instead. - **Google Antigravity IDE and Gemini CLI**, which use Google-managed models or speak only Google's own API. - **Windsurf and Amp**, which don't accept a custom address. --- Source: https://docs.agentkeyroute.com/connect · Markdown: https://docs.agentkeyroute.com/connect.md # Coding agents Connect apps # Coding agents Coding agents read your code and run commands. Give each developer their own key so every session is attributed, and use the Coding agents & developer tools profile: source code may use SOC 2 providers, credentials and patient data are always blocked, and personal data is redacted. [T3 CodeMulti-agent control plane for Claude Code, Codex & OpenCode](https://docs.agentkeyroute.com/connect/t3-code)[GitHub CopilotThe code assistant most developers already have](https://docs.agentkeyroute.com/connect/github-copilot)[Claude CodeAnthropic's coding agent](https://docs.agentkeyroute.com/connect/claude-code)[Codex CLIOpenAI's coding agent](https://docs.agentkeyroute.com/connect/codex)[OpenCodeOpen-source coding agent, terminal and desktop](https://docs.agentkeyroute.com/connect/opencode)[AiderPair programming in the terminal](https://docs.agentkeyroute.com/connect/aider)[GooseBlock's open-source agent, CLI and desktop](https://docs.agentkeyroute.com/connect/goose)[CrushCharm's terminal coding agent](https://docs.agentkeyroute.com/connect/crush)[Qwen CodeOpen-source terminal coding agent](https://docs.agentkeyroute.com/connect/qwen-code)[OpenHandsAutonomous software-engineering agent](https://docs.agentkeyroute.com/connect/openhands)[Open InterpreterRuns code on your computer from chat](https://docs.agentkeyroute.com/connect/open-interpreter)[WarpAI-native terminal (BYO inference, 2026)](https://docs.agentkeyroute.com/connect/warp) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/coding-agents · Markdown: https://docs.agentkeyroute.com/connect/coding-agents.md # Editors & IDE extensions Connect apps # Editors & IDE extensions AI in the editor sees the code you have open. Point the editor's OpenAI-compatible provider at the gateway; the Coding agents & developer tools profile is the usual choice. [CursorAI code editor](https://docs.agentkeyroute.com/connect/cursor)[ClineAutonomous coding agent for VS Code](https://docs.agentkeyroute.com/connect/cline)[Roo CodeMulti-mode coding agent for VS Code](https://docs.agentkeyroute.com/connect/roo-code)[Kilo CodeOpen-source coding agent for VS Code](https://docs.agentkeyroute.com/connect/kilo-code)[ContinueAssistant for VS Code and JetBrains](https://docs.agentkeyroute.com/connect/continue)[ZedFast editor with a built-in agent](https://docs.agentkeyroute.com/connect/zed)[WindsurfCodeium's agentic IDE](https://docs.agentkeyroute.com/connect/windsurf)[JetBrains AI AssistantAI inside IntelliJ, PyCharm, GoLand and friends](https://docs.agentkeyroute.com/connect/jetbrains-ai) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/editors · Markdown: https://docs.agentkeyroute.com/connect/editors.md # Chat & desktop apps Connect apps # Chat & desktop apps Chat workspaces and desktop clients let people talk to models directly. Point them at the gateway so every conversation follows your profile. For self-hosted workspaces, one key can serve the whole team; send X-AIGov-User where the app supports it. [Open WebUISelf-hosted ChatGPT-style workspace](https://docs.agentkeyroute.com/connect/open-webui)[LibreChatSelf-hosted multi-model chat](https://docs.agentkeyroute.com/connect/librechat)[LobeChatSelf-hosted chat with agents and plugins](https://docs.agentkeyroute.com/connect/lobechat)[JanDesktop AI app](https://docs.agentkeyroute.com/connect/jan)[MstyDesktop AI app](https://docs.agentkeyroute.com/connect/msty)[Cherry StudioDesktop AI app](https://docs.agentkeyroute.com/connect/cherry-studio)[ChatboxDesktop and mobile AI client](https://docs.agentkeyroute.com/connect/chatbox)[TypingMindChat front-end for teams](https://docs.agentkeyroute.com/connect/typingmind)[Raycast AIAI inside Raycast launcher (Mac)](https://docs.agentkeyroute.com/connect/raycast-ai) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/chat-apps · Markdown: https://docs.agentkeyroute.com/connect/chat-apps.md # Voice agents Connect apps # Voice agents [VapiPhone and realtime voice AI](https://docs.agentkeyroute.com/connect/vapi)[ElevenLabs AgentsConversational AI from ElevenLabs](https://docs.agentkeyroute.com/connect/elevenlabs-agents)[LiveKit AgentsRealtime voice and media agents](https://docs.agentkeyroute.com/connect/livekit-agents) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/voice-agents · Markdown: https://docs.agentkeyroute.com/connect/voice-agents.md # Enterprise copilots & search Connect apps # Enterprise copilots & search [Salesforce AgentforceEinstein / Agentforce via Model Builder](https://docs.agentkeyroute.com/connect/salesforce-agentforce)[ServiceNow Now AssistBYOLLM for Now Assist skills](https://docs.agentkeyroute.com/connect/servicenow-now-assist)[GleanEnterprise search & knowledge AI](https://docs.agentkeyroute.com/connect/glean) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/enterprise-copilots · Markdown: https://docs.agentkeyroute.com/connect/enterprise-copilots.md # Browser & web agents Connect apps # Browser & web agents [Browser UseOpen-source browser agent (89% WebVoyager)](https://docs.agentkeyroute.com/connect/browser-use)[SkyvernVision-first browser agent (open-source)](https://docs.agentkeyroute.com/connect/skyvern) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/browser-agents · Markdown: https://docs.agentkeyroute.com/connect/browser-agents.md # Agent frameworks & SDKs Connect apps # Agent frameworks & SDKs Agent frameworks call models in loops, often with tool results that come from outside. Every step goes through the gateway, so tool output is scanned too. Most frameworks accept an OpenAI-compatible base URL. [Claude Agent SDKBuild agents on Claude Code's engine](https://docs.agentkeyroute.com/connect/claude-agent-sdk)[OpenAI Agents SDKMulti-agent workflows with handoffs](https://docs.agentkeyroute.com/connect/openai-agents)[LangChain & LangGraphChains, tools and graph agents](https://docs.agentkeyroute.com/connect/langchain)[LlamaIndexAgents and RAG over your data](https://docs.agentkeyroute.com/connect/llamaindex)[CrewAITeams of role-playing agents](https://docs.agentkeyroute.com/connect/crewai)[AutoGenMicrosoft's multi-agent framework](https://docs.agentkeyroute.com/connect/autogen)[Pydantic AIType-safe Python agents](https://docs.agentkeyroute.com/connect/pydantic-ai)[Vercel AI SDK & MastraTypeScript AI apps and agents](https://docs.agentkeyroute.com/connect/vercel-ai)[DSPyProgramming, not prompting](https://docs.agentkeyroute.com/connect/dspy)[smolagentsHugging Face's code agents](https://docs.agentkeyroute.com/connect/smolagents) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/frameworks · Markdown: https://docs.agentkeyroute.com/connect/frameworks.md # Workflow & no-code platforms Connect apps # Workflow & no-code platforms No-code platforms run automations and agents on a schedule or on events. Add the gateway as an OpenAI-compatible credential and use it in every AI node. [n8nWorkflow automation with AI agents](https://docs.agentkeyroute.com/connect/n8n)[DifyLLM app and agent builder](https://docs.agentkeyroute.com/connect/dify)[FlowiseDrag-and-drop agent flows](https://docs.agentkeyroute.com/connect/flowise)[LangflowVisual builder for agents and RAG](https://docs.agentkeyroute.com/connect/langflow) Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. --- Source: https://docs.agentkeyroute.com/connect/workflow-platforms · Markdown: https://docs.agentkeyroute.com/connect/workflow-platforms.md # Your own application Connect apps # Your own application Your code keeps using the OpenAI or Anthropic SDK it already uses. Change the base URL and the key; nothing else. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. 1. Install an SDK ``` pip install openai ``` 2. Call the gateway ``` from openai import OpenAI client = OpenAI(base_url="https://gateway.agentkeyroute.com/v1", api_key="") resp = client.chat.completions.create( model="gpt-4.1", messages=[{"role": "user", "content": "Hello"}], extra_headers={"X-AIGov-User": ""}, ) print(resp.choices[0].message.content) ``` 3. Attribute requests to people Send `X-AIGov-User` with the signed-in user's ID (as in the Python example), so audit records and per-person reports show who asked, not just which app. ## Choosing what to connect in the wizard | Pick | When | | --- | --- | | **Chatbot or assistant** | Answers questions for people. | | **Search & document Q&A** | Retrieval over your documents (RAG). | | **Workflow agent** | Takes actions in other systems; registered as autonomous. | | **Your own application** | Anything else, including tools not listed in these docs that accept an OpenAI or Anthropic base URL. | See [Endpoints & examples](https://docs.agentkeyroute.com/api/endpoints) for streaming, tools, embeddings, images and more. --- Source: https://docs.agentkeyroute.com/connect/your-app · Markdown: https://docs.agentkeyroute.com/connect/your-app.md # AgentKeyRoute Guard (browser) Connect apps # AgentKeyRoute Guard (browser extension) Much AI use never touches an API: people paste into chat websites. Guard is the AgentKeyRoute browser extension for ChatGPT, Claude, Gemini, Copilot and Perplexity. The same extension can run in four modes, which your admin flips per site and per team from the console. ## The four modes | Mode | What Guard does | Governance | | --- | --- | --- | | **off** | Nothing. | — | | **log** | Observes prompts and replies on vendor sites and sends them to `POST /v1/log`. Nothing is blocked. | Passive audit. | | **inspect** | Before each message is sent, Guard calls [POST /v1/inspect](https://docs.agentkeyroute.com/api/endpoints#inspect). Blocked data never leaves the browser; redactable details are swapped for placeholders. The user still talks to the vendor on their own account. | Pre-send policy. | | **proxy** | Hides the vendor chat UI and mounts the AgentKeyRoute chat on the same site, routing every request through the gateway on a company key. | Full request and response control. | Mode changes are backend-controlled An admin flips the mode for a site in the console; the extension picks it up on its next config poll. No reinstall, no reload. ## Install 1. Create an extension key In the console, open [Connect an app → Browser extension](https://app.agentkeyroute.com/connect), choose the profile that decides what may be shared (Internal assistant by default) and click **Create key**. A team can share one extension key; each person's email identifies them. 2. Download the extension On the same page, download `agentkeyroute-guard.zip`. It works in Chrome, Edge, Brave and other Chromium browsers. 3. Install it - Unzip the file. - Open `chrome://extensions` (or `edge://extensions`) and turn on **Developer mode**. - Click **Load unpacked** and choose the unzipped folder. For the whole company, IT can force-install it with browser management policy so it can't be switched off. 4. Connect it Click the AgentKeyRoute icon, enter the gateway address `https://gateway.agentkeyroute.com`, the key and your email, then **Save and test**. 5. Pick the mode per site In the console, under [Browser extension](https://app.agentkeyroute.com/connect), set the mode for each site your team uses: ChatGPT, Claude, Gemini, Copilot, Perplexity. Start with **log** to build an inventory; move to **inspect** or **proxy** as policy hardens. ## What people see in inspect mode | Outcome | What happens | | --- | --- | | **Nothing sensitive** | The message is sent as normal. | | **Details replaced** | Names, emails or patient details are swapped for placeholders in the box; the person reviews and presses send again. | | **Not sent** | Blocked data, such as card numbers or passwords, never leaves the browser. | Every check is recorded in Requests as "Guard · · ". In **inspect** mode no model is called by AgentKeyRoute; the user still talks to the vendor on their own account. Under the hood it uses [POST /v1/inspect](https://docs.agentkeyroute.com/api/endpoints#inspect), which you can call from your own tools too: Terminal ``` curl https://gateway.agentkeyroute.com/v1/inspect \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"destination":"chatgpt.com","user":"alice@example.com","text":"Summarise this note for John Smith"}' ``` ## Proxy mode in detail When a site is set to **proxy**, Guard hides the vendor chat UI and mounts the AgentKeyRoute chat on the same page. Every message routes through the gateway on a company key, using the models and provider connections the profile allows. Cost and usage are attributed to the person (by email) and the workload. Users do not need a vendor account; the vendor login is bypassed. Proxy mode is strongest when: you want one audit log for every AI session; you want users to stop using personal accounts entirely; or the regulatory story needs provider choice and region control on top of inspection. ## Log mode in detail **Log** mode is the lowest-friction way to find out how your team is using public AI. Guard observes prompts and replies on vendor sites and sends them to `POST /v1/log`. The profile decides whether content is captured in full, redacted or kept as metadata only. No policy blocks anything, so nobody's workflow changes. Most organisations start with **log** for two weeks, review what shows up in Requests, and then move each site to **inspect** or **proxy** with confidence. --- Source: https://docs.agentkeyroute.com/connect/browser-extension · Markdown: https://docs.agentkeyroute.com/connect/browser-extension.md # Governance profiles Protect data # Governance profiles A governance profile is the bundle of rules an app follows. Every API key has exactly one, so the protection an app gets depends on which key it uses. ## What a profile decides | Setting | What it does | | --- | --- | | **Frameworks** | Regulations and standards to enforce, such as HIPAA, GDPR or SOC 2. They become routing limits; when several apply, the strictest wins. | | **Sensitive data** | For each kind of data (health, personal, card, secrets, government, confidential): Allow, Redact or Block. | | **Guardrails** | Prompt-injection sensitivity, the safety model, which unsafe categories block, denied topics and content limits. | | **Content capture** | Off (metadata only), redacted, full or a sample of requests. Captured content is encrypted with your organisation's key. | | **Retention** | How long audit records are kept, for example six years for HIPAA. | | **Response cache** | Answer repeat questions from an encrypted cache. Health, card and secret data are never cached by default. | | **Risk tiers** | What happens to tier 2 and tier 3 risk requests: record, hold for review, or block. | | **Model allow-list** | Optionally limit the key to specific models, on top of policy rules. | Open a profile in [Governance profiles](https://app.agentkeyroute.com/profiles) to see a plain-language "What this profile does" panel that updates as you edit. ## Built-in profiles Every organisation starts with 43 ready-made profiles. Most organisations use them as they are. | Category | Profiles | | --- | --- | | **Healthcare** | HIPAA · Clinical; HIPAA · Patient-facing assistant; HIPAA + HITRUST; Healthcare · EU; Clinical research (de-identified); Revenue cycle & claims; Mental & behavioural health; Clinical decision support; Telehealth & virtual care; Life sciences R&D | | **Financial services** | PCI DSS · Payments; Banking (GLBA + NYDFS); Public company finance (SOX); EU financial services (DORA + GDPR); Insurance claims & underwriting; Fraud & AML; Wealth & investment advisory | | **Government** | FedRAMP Moderate; Defence contractors (CMMC / CUI); Law enforcement (CJIS); Citizen services | | **Education** | Education (FERPA); K-12 schools; Higher education & research | | **Privacy** | GDPR · EU personal data; CCPA / CPRA · California; India DPDP Act | | **AI governance** | EU AI Act · High-risk system; AI management system (NIST AI RMF + ISO 42001); HR & recruiting | | **General use** | Internal assistant; Coding agents & developer tools; Customer support assistant; Public website content; Legal & privileged; Maximum protection; Evaluation & sandbox; Retail & e-commerce; Contact centre; Marketing & communications; Security operations; Data analytics & BI; Translation & localisation | - **Secrets are always blocked.** Every built-in profile blocks credentials and API keys. - **Safety model: Automatic.** Built-in profiles pick your own on-prem or private-cloud guardrail model. A public one is never chosen, so screening can't send data anywhere the request itself couldn't go. With none configured, the step is skipped. - **Edit freely.** Built-in profiles can be changed; **Restore defaults** puts one back. **Copy and customise** in the profile library starts a new profile from any template, and deleted ones can be re-added. ## Which profile should I use? You rarely need to choose by hand: [Connect an app](https://app.agentkeyroute.com/connect) asks who uses the app and what data it sees, then recommends one and says why. Some common answers: | App | Recommended profile | | --- | --- | | Claude Code, Cursor or another coding tool | Coding agents & developer tools | | Clinical tool used by staff | HIPAA · Clinical | | Patient or customer-facing health assistant | HIPAA · Patient-facing assistant | | Customer support bot | Customer support assistant | | Public website chat | Public website content | | Anything that helps decide about people (hiring, credit) | HR & recruiting, or EU AI Act · High-risk system for EU residents | | Internal assistant with general business data | Internal assistant | Check what a key can actually use Open [API keys](https://app.agentkeyroute.com/keys) and select a key. For each data class, the panel lists which models a request would be routed to (primary and fallbacks), whether values are redacted, or why it would be blocked. --- Source: https://docs.agentkeyroute.com/profiles · Markdown: https://docs.agentkeyroute.com/profiles.md # Policy rules Protect data # Policy rules Rules decide which models may answer a request. They're checked top to bottom; the first rule that matches decides. If none matches, the request is refused. ## How rules work - A rule matches on what's in the request (data classes, task, team, workload) and names where it may go. - Targets can name specific models, or describe them: "on-prem, then private cloud", "processing in the EU", "provider holds ZDR or NO\_TRAINING", "good at classification, cheapest first". Described targets resolve live, so they keep working as providers and models change. - The key's frameworks then narrow the result further, for example to providers with a signed BAA. - Rules can also deny outright, and the last rule is usually a catch-all. ## Default rules New organisations start with: | # | Rule | Effect | | --- | --- | --- | | 1 | `health-data-on-prem-first` | Health data goes to on-prem models first. | | 2 | `government-data-us-only` | Government-controlled data stays in the United States. | | 3 | `personal-data-off-public-internet` | Personal data doesn't go to public APIs. | | 4 | `confidential-private-cloud` | Confidential data stays in your private cloud. | | 5 | `everything-else-requested-model` | Everything else goes to the model the app asked for. | ## Policy library Under [Policies → Policy library](https://app.agentkeyroute.com/policies) there are 22 ready-made rules in five groups: Data protection, Data residency, Vendors & contracts, Cost & quality, and Catch-all. Each is added where it belongs: blocks at the top, catch-alls at the bottom, everything else just above your first catch-all. ## Test before you change The [Playground](https://app.agentkeyroute.com/playground) shows the decision for any message and profile without calling a model. Every policy change is snapshotted; roll back from the policy history if a change misbehaves. --- Source: https://docs.agentkeyroute.com/policies · Markdown: https://docs.agentkeyroute.com/policies.md # Sensitive data & redaction Protect data # Sensitive data & redaction Every message is scanned before it leaves. What happens to each kind of data is set by the key's governance profile. ## What's detected | Class | Examples | | --- | --- | | PHI | Diagnoses, medications, medical record numbers, health context around names. | | PII | Names, emails, phone numbers, addresses, national IDs. | | PCI | Card numbers (checked with Luhn), IBANs, bank account numbers. | | Secrets | API keys, passwords, private keys, tokens. Always blocked by built-in profiles. | | CUI | Controlled unclassified information, criminal justice information. | | Confidential | Financials, contracts, legal matters, source code. | Detection uses patterns, checksums and clinical context, and runs on every request. ## Allow, redact or block - **Allow:** sent as is (routing rules still decide where it may go). - **Redact:** values are replaced with placeholders such as `[REDACTED:EMAIL]` before the text leaves. Redaction can be skipped when the destination is on-prem. - **Block:** the request is refused with `data_blocked`. ## Declaring data from your app If your app knows a request contains sensitive data, say so. The header can raise the class but never lower it. Header ``` X-AIGov-Sensitivity: phi,pii ``` ## Treat every request as sensitive A workload's data types describe what it **may** handle. For apps that always handle a type, such as a clinical tool, turn on **Treat every request as containing this data** (in the Connect wizard, or on the workload). Every request is then handled as if that data were present, even when detection finds nothing. Attachments Data scanning reads text. Images, audio, video and files are not scanned, so profiles can block attachments under Content limits (`attachments_blocked`). ## Try it Paste a message into the [Playground](https://app.agentkeyroute.com/playground) to see what's detected and what would be sent. Or call the inspect endpoint: Terminal ``` curl https://gateway.agentkeyroute.com/v1/inspect \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"destination":"chatgpt.com","text":"Patient John Carter, MRN 00482913"}' ``` --- Source: https://docs.agentkeyroute.com/data-protection · Markdown: https://docs.agentkeyroute.com/data-protection.md # Guardrails & safety models Protect data # Guardrails & safety models Beyond sensitive data, profiles stop prompt injection, unsafe content, blocked topics and oversized or unwanted input. ## Prompt injection Messages that look like attempts to override instructions are blocked (`prompt_injection`). Set the profile's sensitivity to Strict, Balanced or Lenient; Strict catches more, with more false alarms. Agent tool results go through the gateway too, so injected instructions in fetched content are checked. ## Safety models Any model behind a provider can be marked as a **guardrail**: Llama Guard 3, ShieldGemma, Granite Guardian, or anything that answers `safe`/`unsafe` or `Yes`/`No`. Select it on a profile to screen requests and, optionally, answers. - Hazard categories S1–S14 follow the Llama Guard / MLCommons taxonomy; you choose which ones block. - If the safety model is unavailable, the profile either blocks the request (fail closed) or allows and records it (fail open). - High-severity blocks (S1, S4, S9, S11) open an incident automatically. - Blocked requests return `guard_model_blocked`; withheld answers return `output_guard_blocked`. ### Run a safety model on your own hardware Run it wherever you host models (Ollama, vLLM, TGI, NVIDIA NIM) and add that endpoint in [Providers & models](https://app.agentkeyroute.com/providers) with provider type Ollama or vLLM. Set the URL (for example `http://:11434/v1`), set "Where it runs" to on-prem, and give the model the `guardrail` strength. See [Providers & models](https://docs.agentkeyroute.com/providers). ## Content limits | Limit | Error when hit | | --- | --- | | Denied topics | `denied_topic` | | Maximum prompt size | `prompt_too_large` | | Block images, audio, video or files | `attachments_blocked` | ## Risk tiers Each request gets a risk score from 0 to 100 (returned in `X-AIGov-Risk`), from data sensitivity, how consequential the action is, model reliability, regulation and where it runs. Scores above 50 are tier 2, above 80 tier 3. The profile sets what each does: record, hold for review, or block. [Governance profilesWhere these settings live.](https://docs.agentkeyroute.com/profiles)[Why was a request blocked?Fix false alarms.](https://docs.agentkeyroute.com/troubleshooting) --- Source: https://docs.agentkeyroute.com/guardrails · Markdown: https://docs.agentkeyroute.com/guardrails.md # Providers & models Models # Providers & models A provider is where models run. Add yours under Providers & models; their models are imported and kept up to date automatically. ## Add a provider 1. Choose the type In [Providers & models](https://app.agentkeyroute.com/providers), click **Add provider** and pick from 38 types (34 API and self-hosted providers plus 4 subscription types). Each comes with its default address, the country it processes in and a link to create an API key. 2. Paste its API key Keys are sealed with your organisation's own data key. A provider without a required key shows **Needs API key** and is never routed to. 3. Say where it runs and what you've signed Mark it on-prem, private cloud or public, and tick the contracts and attestations you actually hold (BAA, DPA, SOC 2, ISO 27001, zero retention…). Frameworks read these to decide where sensitive data may go. | Kind | Providers | | --- | --- | | **Model vendors** | OpenAI, Anthropic, Gemini, xAI, Mistral, Cohere, DeepSeek, Moonshot, Qwen, Z.ai, Perplexity | | **Aggregators & inference clouds** | OpenRouter, Together, Fireworks, Groq, Cerebras, DeepInfra, SambaNova, Hyperbolic, Novita, Hugging Face, NVIDIA | | **Your cloud tenancy** | Azure OpenAI, AWS Bedrock, Vertex AI | | **Self-hosted** | Ollama, vLLM, NVIDIA NIM, TGI, LM Studio, LiteLLM, any OpenAI-compatible endpoint | The full list is on [agentkeyroute.com/models](https://agentkeyroute.com/models). ## Automatic model sync - Runs when a provider is added, when its key changes, every 6 hours, and when you click **Sync models**. - Reads the provider's own model list with its key; prices and context windows come from a public model catalogue. - Each model is typed (chat, embedding, image, speech, rerank, moderation, video) and guard models are detected. Each endpoint only routes to models of its type. - Models the provider stops listing are disabled, not deleted. ## Free models only Per provider, switch on **Free models only** under Model sync to enable just the models with no per-token price. Useful for OpenRouter and other aggregators that mix free and paid catalogues (Together, Hugging Face, OpenRouter `:free` variants, OmniRoute). - Turning it on immediately disables synced models whose input or output price is greater than zero. Hand-added models and already-enabled free models are not touched. - On the next sync, new paid models arrive disabled regardless of the **Enable new models** setting; free ones follow that setting as usual. - Turning it off does not re-enable models retroactively; re-enable the ones you want by hand under the provider's models table. ## Reliability - If a model fails, the request falls back to the next model the rules allow. Providers that stop answering are taken out of rotation until they recover. - Per provider, set the maximum concurrent requests and rate-limit protection. The provider page shows success rate, latency and queue. - The gateway checks which model actually answered and fails closed (`served_model_mismatch`) if it wasn't one policy allowed. ## Response cache Turned on per governance profile. Entries are encrypted and kept separate for each organisation, profile and model chain; the cache key is the request after redaction. Health, card and secret data are never cached by default. `X-AIGov-Cache` says `hit` or `miss`, and Cost & usage shows the savings. ## OpenRouter and zero data retention OpenRouter sends each request to one of several companies. The gateway governs that choice: - **Sensitive data only goes to zero-retention endpoints.** The gateway names them explicitly, so endpoints that keep flagged prompts are excluded whatever your OpenRouter account settings. Per provider, choose **When data is sensitive** (default), **Always** or **Off**. - **Zero-retention marking.** Models with such routes are marked `ZDR` and `NO_TRAINING`, refreshed hourly, so rules and frameworks can use them. - **Where it actually ran.** After each call the request records which company served it, in which region, at what cost and after which fallbacks. - **Exact cost.** OpenRouter's reported cost replaces the price-list estimate. --- Source: https://docs.agentkeyroute.com/providers · Markdown: https://docs.agentkeyroute.com/providers.md # Subscription accounts Models # Subscription accounts Use personal AI subscriptions (Claude Pro/Max, ChatGPT/Codex, GitHub Copilot, Google Gemini) as providers, governed like any other. Off by default Subscription accounts are enabled per organisation by AgentKeyRoute. Ask your account contact if you need them. ## How it works - **Connect accounts:** add a subscription provider and connect one or more accounts. Sign-in happens on the vendor's own page (paste a code, paste the address, or use a device code); tokens never reach the console. - **Failover:** requests use the primary account until it's exhausted, then move to the next. - **Records:** every request records which connected account served it. - **Governance:** these models count as public cloud with no attestations, so frameworks keep sensitive data away from them. Check the vendor's terms Consumer subscriptions are licensed for personal use. Vendors may suspend accounts used for automated or shared traffic. --- Source: https://docs.agentkeyroute.com/subscription-accounts · Markdown: https://docs.agentkeyroute.com/subscription-accounts.md # Chat & AI workspace Use AI here # Chat & AI workspace Two ways to use AI inside AgentKeyRoute itself, with every message governed. ## AgentKeyRoute Chat **Chat** in the console gives everyone a chat window where every message goes through the gateway. - Messages follow the organisation's chat profile, chosen by administrators (default: Internal assistant). - Each message is recorded as the "AgentKeyRoute Chat" workload under the person's name. - Conversations are kept in the browser only. ## AI workspace A full coding agent (OpenCode) in a private sandbox for each person, opened from [AI workspace](https://app.agentkeyroute.com/workspace) in the console. It's enabled per organisation and per plan (workspace seats). | Mode | What you get | | --- | --- | | **Chat** | A plain assistant. Tools, terminal, files and settings are switched off. | | **Code** | The full agent with terminal, files, review and MCP servers. It can create images, speech and video through the gateway with the agentkeyroute-media command, /image, /speech and /video, or by asking. | ## How it's governed - The workspace only ever uses the AgentKeyRoute provider with a key for that person; project settings can't add other providers or credentials. - Each sandbox runs isolated, without root, with fixed memory and CPU limits and its own private storage. It can reach the gateway and the internet, never AgentKeyRoute's internal services. - An idle sandbox is removed after 30 minutes and recreated in about a second when you return. Your files and conversations stay in your private volume, which is deleted after 30 days unused or when you reset it. - Attach images, PDFs and audio to models that accept them; pick a "· video" model to attach video. Attachments aren't scanned for sensitive data, so profiles can block them. MCP servers In Code mode, add MCP servers to `~/workspace/opencode.json` under `"mcp"`, or ask the agent to do it. Internet access Code mode can reach the internet (for package installs), so someone could call outside AI services from the terminal themselves. Ask about restricting egress if that matters for you. --- Source: https://docs.agentkeyroute.com/workspace · Markdown: https://docs.agentkeyroute.com/workspace.md # AgentKeyRoute Context (MCP) Context across tools # AgentKeyRoute Context One library of snippets, saved AI replies and projects. Syncs across the browser extension, Claude Desktop, mobile Claude, Cursor and anything else that speaks MCP. ## What you get AgentKeyRoute Context is a personal library of context items you can call into any AI chat. Items can be short snippets ("my stack", "writing voice"), saved replies you want to reuse, files from an AgentKeyRoute workspace, or whole projects that group them. The same library is available from three places: - The **AgentKeyRoute Context** browser extension — side panel, right-click, keyboard shortcuts on claude.ai, chatgpt.com, gemini.google.com and ~10 other chat sites. - Any MCP-aware client — Claude Desktop, mobile Claude, Cursor, Zed, VS Code — by adding one MCP server URL and a device token. - Directly, through the REST API, if you're building your own tool. The extension and the MCP server both call the same endpoints, so a snippet saved in one place shows up everywhere else within a sync cycle. ## Download the browser extension **AgentKeyRoute Carry** v0.2.0 — load unpacked while we're working through Chrome Web Store review. [⬇ agentkeyroute-carry-0.2.0.zip](https://docs.agentkeyroute.com/extension/0.2.0/agentkeyroute-carry-0.2.0.zip) — [SHA-256](https://docs.agentkeyroute.com/extension/0.2.0/agentkeyroute-carry-0.2.0.zip.sha256) Unzip, then in Chrome open `chrome://extensions`, turn on **Developer mode**, and click **Load unpacked** on the unzipped folder. ## Mint a device token Every non-browser client (Claude Desktop, mobile, Cursor…) authenticates with a bearer token called a *context token*. You mint one per device, name it, and paste it into the client once. Tokens are user-scoped: they can read and write your library, and nothing else, regardless of what else your AgentKeyRoute account can do. Create a token (POST /api/context/tokens) ``` curl -sS https://app.agentkeyroute.com/api/context/tokens \ -H "Content-Type: application/json" \ -H "X-Requested-With: covenra" \ --cookie "cov_session=$COV_SESSION" \ -d '{"label":"Claude Desktop on MacBook","client_kind":"mcp"}' ``` The response includes a one-time `token` field of the form `cvctx_…`. Copy it immediately — only its hash is stored, so if you lose it you have to mint another. ## Connect Claude Desktop Add a new MCP server to Claude Desktop's config file: ``` # ~/Library/Application Support/Claude/claude_desktop_config.json { "mcpServers": { "covenra-context": { "url": "https://app.agentkeyroute.com/api/mcp/context", "headers": { "Authorization": "Bearer cvctx_YOUR_TOKEN_HERE" } } } } ``` Restart Claude. You'll see `covenra-context` in the tool list; the model can now call `list_items`, `search_items`, `get_item`, `add_item`, `update_item` and `delete_item`. Try asking "Save this reply to my AgentKeyRoute Context as 'answer about X'". ## Connect mobile Claude Mobile Claude supports remote MCP servers through the same URL. In the app, open Settings → Connectors → Add custom, and paste: | Field | Value | | --- | --- | | URL | `https://app.agentkeyroute.com/api/mcp/context` | | Auth | Bearer | | Token | cvctx\_… (your device token) | Your library is now available from any mobile conversation, same tools as on desktop. ## Connect Cursor, Zed, VS Code, anything else Any MCP-compatible host works the same way. Point it at the URL above with a Bearer header. The server advertises itself at `GET /api/mcp/context` so a client can verify it's reachable before sending JSON-RPC. ## What the tools do | Tool | Purpose | Arguments | | --- | --- | --- | | `list_items` | List items (title + preview). | `kind?`, `limit?` | | `search_items` | Substring search across title and body. | `query`, `limit?` | | `get_item` | Fetch one item's full body. | `id` | | `add_item` | Create a new item. | `body`, `title?`, `kind?`, `tags?` | | `update_item` | Patch an item (only supplied fields). | `id`, and any field | | `delete_item` | Soft-delete an item. | `id` | Items also appear as MCP resources at `covenra-context://item/`, so a client that prefers resources over tools can list and read them that way. ## REST API If you're building your own tool rather than wiring up an MCP host, the same data is available at these endpoints. Authentication is either a session cookie (web, the extension) or a bearer `cvctx_…` token in the `Authorization` header. | Endpoint | Does | | --- | --- | | `GET /api/context/items` | List items. Add `?since=` to pull changes (including soft deletes) since a timestamp. | | `POST /api/context/items` | Create an item. | | `PATCH /api/context/items/{id}` | Update an item. | | `DELETE /api/context/items/{id}` | Soft-delete an item. | | `GET /api/context/usage` | Current count and byte total, plus your plan limits. | | `GET /api/context/tokens` | List device tokens. | | `POST /api/context/tokens` | Mint a token (returned only once). | | `POST /api/context/tokens/{id}/revoke` | Revoke a token immediately. | | `POST /api/mcp/context` | MCP JSON-RPC endpoint — described above. | ### Sync loop Clients pull with `?since=`, then save the response's `server_time` for the next call. A deletion comes back as an item with its `deleted_at` set, so local caches know to drop it. ## Plan limits | Plan | Items | Storage | Priority sync | | --- | --- | --- | --- | | Personal (free) | 500 | 100 MB | No | | Personal Pro ($4/mo) | Unlimited | 2 GB | Yes | | Team and above | Unlimited | 5 GB per user | Yes | The browser extension shows your current usage in its side panel; the REST endpoint `GET /api/context/usage` returns the same numbers for other clients. ## Troubleshooting | Symptom | Fix | | --- | --- | | 401 Unauthorized from MCP | The token was mistyped or revoked. Mint a fresh one and paste it again. Tokens starting with anything other than cvctx\_ aren't ours. | | Tools don't appear in Claude Desktop | Confirm the JSON parses (a trailing comma breaks it silently) and restart Claude fully, not just the window. | | Changes don't appear on another device | Both clients pull with ?since=. If a client hasn't synced in a while, pull without ?since= once to reset its state. | | items\_quota / storage\_quota error on add | You've hit your plan limit. Delete old items or upgrade to Personal Pro. | ## Security notes - Context tokens grant **only** `context.*` capabilities. They can't read or modify anything else your AgentKeyRoute account is attached to — even if you're the Owner of an organisation. - Only the token's SHA-256 hash is stored. We can't show you a token again after it was minted. - Revoke a lost token at `POST /api/context/tokens/{id}/revoke` or in the console. Revocation takes effect on the next request. - Rows are row-level-isolated to your tenant in Postgres; a query missing a user\_id filter would still never see another tenant's data. --- Source: https://docs.agentkeyroute.com/mcp-context · Markdown: https://docs.agentkeyroute.com/mcp-context.md # Frameworks & evidence Compliance & audit # Frameworks & evidence The regulations you choose become enforced behaviour, and AgentKeyRoute collects the evidence that they are. ## Supported frameworks | Area | Frameworks | | --- | --- | | **Healthcare** | HIPAA, HITRUST | | **Privacy** | GDPR, CCPA / CPRA, India DPDP Act | | **AI** | EU AI Act, ISO 42001, NIST AI RMF | | **Security** | SOC 2, ISO 27001 | | **Finance** | PCI DSS, SOX, GLBA, NYDFS Part 500, DORA | | **Education** | FERPA | | **Government** | FedRAMP, CMMC, CJIS | ## From regulation to routing Each framework carries concrete limits. HIPAA: health data only to on-prem models or providers with a BAA, records kept six years. GDPR: personal data only to processors with a DPA. EU AI Act: prohibited uses are refused and autonomous high-risk use is held for a person. Put frameworks on a profile and all of them are enforced at once; where they disagree, the strictest wins. ## What an auditor will ask for | Question | Where the answer is | | --- | --- | | Which AI is in use, by whom, for what? | [Workloads](https://app.agentkeyroute.com/workloads): every AI use with owner, purpose, data and EU AI Act tier. | | How is sensitive data controlled? | [Profiles](https://app.agentkeyroute.com/profiles) and [rules](https://app.agentkeyroute.com/policies), with the effective policy per profile and a decision trace for any request. | | Can you prove nothing was altered? | The [audit log](https://app.agentkeyroute.com/audit) is hash-chained; verify it in one click. | | How do you track control effectiveness? | Automated checks score each framework in [Frameworks & evidence](https://app.agentkeyroute.com/compliance); manual controls are attested with evidence references. | | Who changed what, and was it approved? | Every configuration change is audited; two-administrator approval can be required. | | What are your AI risks? | The [risk register](https://app.agentkeyroute.com/risks) scores inherent and residual risk with owners and review dates. | ## Evidence pack Under [Frameworks & evidence](https://app.agentkeyroute.com/compliance), **Evidence pack** downloads framework scores, gaps, attestations and the audit-chain check as one file. --- Source: https://docs.agentkeyroute.com/compliance · Markdown: https://docs.agentkeyroute.com/compliance.md # EU AI Act mapping Compliance & audit # EU AI Act — article-by-article mapping Every article of the EU AI Act that a gateway can help with, mapped to AgentKeyRoute capability and the console screen that produces the evidence. ## Timeline | Date | What applies | | --- | --- | | **2 Feb 2025** | Prohibited practices and AI literacy obligations take effect. | | **2 Aug 2025** | General-purpose AI model (GPAI) obligations begin. | | **2 Aug 2026** | Main obligations for high-risk systems enforceable (Articles 6–27, logging and oversight requirements). | | **2 Aug 2027** | High-risk systems embedded in regulated products under existing EU law. | Compliance writers say February is the real date If you want six months of logs on enforcement day, Article 19 means you need the gateway in production by early February 2026 — not August. ## Article-by-article | Article | What the Act requires | How AgentKeyRoute meets it | | --- | --- | --- | | **Article 12 — Automatic logging** | High-risk AI systems must technically allow for the automatic recording of events (logs) over the lifetime of the system, sufficient to identify risks and support post-market monitoring. | Every request, redaction, policy decision, model choice and response is written to the hash-chained request log. AgentKeyRoute Guard decisions in the browser (log / inspect / proxy) write the same shape of record. | | **Article 13 — Transparency** | Deployers must know what the system does and the risks of using it, in plain terms. | Each governance profile carries a plain-language "What this profile does" panel shown to admins and included in the evidence pack. | | **Article 14 — Human oversight** | High-risk AI must allow natural persons to oversee it, including the ability to stop or override the system. | Workloads can be marked autonomous or assistive. Autonomous high-risk flows can be held for review; kill switches stop a workload, a key or every workload in one click. | | **Article 15 — Accuracy, robustness, cybersecurity** | High-risk AI must meet accuracy, robustness and security requirements proportionate to the risk. | Served-model verification refuses answers from a model your policy did not allow. Guardrails screen for prompt injection, unsafe content and denied topics. | | **Article 17 — Quality management system** | Providers must have a documented QMS covering risk, testing, change control and incident reporting. | Audit log, incidents, two-admin approval and two-step verification are the enforcement side; the profile library and framework attestations are the documentation side. | | **Article 18 — Documentation retention** | Technical documentation and the QMS must be kept for 10 years after a system is placed on the market. | Not covered by the gateway directly — but every artefact the gateway produces (evidence pack, audit log export) is exportable and portable for your own long-term storage. | | **Article 19 — Log retention** | Logs under Article 12 must be kept for at least six months unless other law extends that. | Retention is set per profile (90 days to seven years). The default on EU AI Act and HIPAA profiles exceeds six months. | | **Article 20 — Corrective actions** | Providers must take prompt corrective actions on non-conforming systems and inform competent authorities. | Kill switches and incident workflow; audit log records both the detection and the action. | | **Article 21 — Cooperation with competent authorities** | Providers must give competent authorities the logs and information needed to demonstrate conformity, on request. | The evidence pack exports framework scores, gaps, attestations, retention policy and a signed audit-chain check in one file. Audit log exports to CSV, Parquet or your SIEM. | | **Article 26 — Deployer obligations** | Deployers must use the system per instructions, assign human oversight, monitor it, and keep logs if they control them. | Workloads record owner, team, purpose, data classes and EU AI Act tier. Every AI use shows up in the inventory. | | **Article 50 — Transparency obligations** | Certain AI must tell people they are interacting with AI; AI-generated content must be marked as such. | Public assistants can be configured to include a disclosure. For AI-generated content marking, use upstream provenance; the gateway records that the content originated from a model and which one. | ## Scope: which of your AI uses is “high risk”? Annex III of the Act lists the high-risk categories: biometric identification, critical infrastructure, education and training, employment and HR, essential private and public services, law enforcement, migration and asylum, administration of justice and democratic processes. Register each AI use as a [workload](https://app.agentkeyroute.com/workloads) with its tier (minimal, limited, high, prohibited); the gateway then enforces the right controls. ## Evidence you can hand to a regulator - **Evidence pack** under [Frameworks & evidence](https://app.agentkeyroute.com/compliance): framework scores, gaps, attestations, retention policy and a signed audit-chain check. - **Audit log export** (CSV / Parquet / SIEM): every request and configuration change, hash-chained. - **Workload inventory**: every registered AI use with owner, data classes and tier. - **Profile printouts**: plain-language description of the rules each app follows. ## Related - [OWASP LLM Top 10 mapping](https://docs.agentkeyroute.com/compliance/owasp-llm) - [ISO 42001 and NIST AI RMF mapping](https://docs.agentkeyroute.com/compliance/iso-nist) - [Requests & audit log](https://docs.agentkeyroute.com/audit) - [Workloads & AI inventory](https://docs.agentkeyroute.com/workloads) --- Source: https://docs.agentkeyroute.com/compliance/eu-ai-act · Markdown: https://docs.agentkeyroute.com/compliance/eu-ai-act.md # OWASP LLM Top 10 (2025) Compliance & audit # OWASP LLM Top 10 (2025) — mapping Each of the OWASP LLM Top 10 2025 risks mapped to the AgentKeyRoute capability that mitigates it. Use this as a drop-in answer for RFPs and architecture reviews. | Risk | Name | What it is | How AgentKeyRoute mitigates it | | --- | --- | --- | --- | | **LLM01** | **Prompt Injection** | Hidden instructions in user input or retrieved content hijack the model. | Prompt-injection guardrail screens request and response; untrusted tool results are marked and re-screened; policy can require a safety-model pass before high-risk tools run. | | **LLM02** | **Sensitive Information Disclosure** | The model leaks PII, PHI, PCI, secrets or confidential business data. | Detection + redaction before data leaves; profile picks allow / redact / block per class; health, card and secret data never cached by default; response screening on the way back. | | **LLM03** | **Supply Chain** | Compromised models, datasets, extensions or plugins. | Signed Guard releases (sigstore), published SBOM, provider connections pinned per key; model identity verified so served-model mismatches fail closed. | | **LLM04** | **Data and Model Poisoning** | Attackers influence training or fine-tuning data. | Out of scope for an inference gateway, but the audit log preserves exact request/response pairs for later forensics and regression comparisons. | | **LLM05** | **Improper Output Handling** | Downstream systems trust model output as if it were safe. | Response guardrails can block, redact or mark output; the gateway labels the X-AIGov-Decision and X-AIGov-Model headers so downstream code can gate on them. | | **LLM06** | **Excessive Agency** | Agents call tools or take actions beyond what the user intended. | Workloads declare their autonomy (assistive vs autonomous); high-risk autonomous flows can be held for human approval; MCP tool-call policy limits which tools an agent may call. | | **LLM07** | **System Prompt Leakage** | An attacker extracts the system prompt and uses it to craft bypasses. | Content capture setting controls whether prompts are stored; system prompts can be injected server-side by the gateway rather than ever sent client-side. | | **LLM08** | **Vector and Embedding Weaknesses** | Retrieval returns confidential context to the wrong user. | Retrieval-side isolation is the app's job; the gateway can enforce that retrieval endpoints are only called by keys whose profile authorises that data class. | | **LLM09** | **Misinformation** | The model produces confidently wrong output that influences decisions. | Safety-model screen; response guardrails; workload tier marks high-risk uses for human oversight; profile can require citations. | | **LLM10** | **Unbounded Consumption** | A caller or looped agent consumes tokens, money or compute without limit. | Rate limits, token caps, workload budgets with hard enforcement, per-key spend ceilings, circuit breakers and queue cooldowns. | ## How to configure a profile for OWASP coverage - Pick a framework profile close to your use case (for example **Internal assistant** or **Customer support assistant**) and open its sensitive-data settings. - Turn **Prompt-injection sensitivity** to Standard (or Strict for public assistants) under [Guardrails](https://app.agentkeyroute.com/guardrails). - Enable a **Safety model** — the Automatic option picks one on your own providers. - Under [Workloads](https://app.agentkeyroute.com/workloads), set the correct autonomy and tier for each registered use. - Set **Monthly budget** on each workload to defend LLM10 (Unbounded Consumption). Verify coverage in the Request Inspector Open any request in [Requests](https://app.agentkeyroute.com/requests) and read the decision trace: it lists exactly which OWASP class a block or redaction maps to. ## Related - [EU AI Act mapping](https://docs.agentkeyroute.com/compliance/eu-ai-act) - [ISO 42001 and NIST AI RMF mapping](https://docs.agentkeyroute.com/compliance/iso-nist) - [Guardrails & safety models](https://docs.agentkeyroute.com/guardrails) --- Source: https://docs.agentkeyroute.com/compliance/owasp-llm · Markdown: https://docs.agentkeyroute.com/compliance/owasp-llm.md # ISO 42001 & NIST AI RMF Compliance & audit # ISO 42001 & NIST AI RMF — mapping How each clause of ISO/IEC 42001 and each core subcategory of NIST AI RMF 1.0 maps to an AgentKeyRoute capability. Microsoft SSPA v11 now names ISO 42001 as a required certification for sensitive-use AI suppliers. ## ISO/IEC 42001:2023 — AI management system | Clause | What the standard requires | How AgentKeyRoute meets it | | --- | --- | --- | | **Clause 4 — Context** | Interested parties, scope of the AI management system. | Workload inventory names each AI use, its owner, data classes and EU AI Act tier; organisation policy defines in-scope apps. | | **Clause 5 — Leadership** | AI policy, roles and responsibilities. | Roles (Owner, Security officer, Data governance, Workload owner, Auditor) encode responsibilities; two-admin approval records leadership sign-off on sensitive changes. | | **Clause 6 — Planning** | Risks and opportunities, AI objectives. | Risk register with inherent and residual scoring; profiles encode mitigations; incidents close the loop. | | **Clause 7 — Support** | Competence, awareness, communication, documented information. | Documentation of each profile and policy is exportable; two-step verification, SSO and training links from Users & roles. | | **Clause 8 — Operation** | Operational planning, AI system impact assessment, AI system lifecycle. | Running / stopped / retired workload lifecycle; impact assessment captured on each workload. | | **Clause 9 — Performance evaluation** | Monitoring, measurement, internal audit, management review. | Live dashboards, Requests, automated framework control checks, evidence pack. | | **Clause 10 — Improvement** | Nonconformity and corrective action. | Incidents, kill switches, change audit log. | ### Annex A — reference controls Annex A groups controls by policies, internal organisation, resources, assessing AI impact, AI system lifecycle, data for AI, information for interested parties, and use of AI. AgentKeyRoute carries evidence for the controls that live inside an AI system: data handling (A.7), AI system lifecycle (A.6), and information for interested parties (A.8). Organisational controls (A.2–A.5) are documented alongside. ## NIST AI RMF 1.0 — Govern / Map / Measure / Manage | Subcategory | What the framework requires | How AgentKeyRoute meets it | | --- | --- | --- | | **GOVERN 1.4 — Legal and regulatory requirements inventoried** | Keep a current inventory of laws and standards that apply to your AI. | Frameworks on each profile mirror the regulations in force; status is visible under Frameworks & evidence. | | **GOVERN 1.7 — Processes and procedures for AI system design** | Documented processes for design and deployment. | Governance profiles encode the process; two-admin approval optionally gates changes. | | **MAP 2.3 — Context and scope documented** | Each AI system has a documented purpose and context. | Workload records owner, team, purpose, data classes and EU AI Act tier. | | **MAP 3.4 — Risks and benefits identified** | Risks of the AI system are documented. | Risk register; profile plain-language description shows what is allowed and denied. | | **MEASURE 2.7 — Trustworthiness characteristics tracked over time** | Monitor accuracy, robustness, security, bias, interpretability continuously. | Requests log every decision; framework control checks run continuously; incidents track failure modes. | | **MEASURE 2.8 — Risk tracked over time** | Track residual risk as controls change. | Risk register pairs inherent and residual scores; audit log records control changes. | | **MEASURE 3.2 — Incidents tracked** | Record incidents and near-misses. | Incidents page; audit log; kill-switch events. | | **MANAGE 2.2 — Mechanisms for human oversight** | Override and shutdown procedures. | Approvals for held requests; kill switches at workload / key / organisation level. | | **MANAGE 4.1 — Post-deployment monitoring** | Monitor systems in production. | Live Requests view, SIEM export, response caching metrics. | Colorado and Texas accept NIST or ISO as an affirmative defence For the Colorado AI Act (and the Texas mirror), operating under NIST AI RMF or ISO 42001 is an affirmative defence to algorithmic discrimination claims. The frameworks column on each AgentKeyRoute profile records which one is in force. ## Related - [EU AI Act mapping](https://docs.agentkeyroute.com/compliance/eu-ai-act) - [OWASP LLM Top 10 mapping](https://docs.agentkeyroute.com/compliance/owasp-llm) --- Source: https://docs.agentkeyroute.com/compliance/iso-nist · Markdown: https://docs.agentkeyroute.com/compliance/iso-nist.md # Workloads & AI inventory Compliance & audit # Workloads & AI inventory A workload is a registered AI use: the app behind one or more keys. Regulators expect an inventory of every AI use with a named owner; workloads are that inventory. ## What a workload records - **Owner, team and purpose.** Apps without an owner show under Needs attention. - **Data types** it may handle, and whether every request should be treated as containing them. - **Task** (chat, code, retrieval, generation) and **autonomy** (assistive or autonomous). - **EU AI Act tier:** minimal, limited, high or prohibited. - **Monthly budget.** When it's used up, requests are refused with `budget_exceeded`. ## Lifecycle | Status | Meaning | | --- | --- | | `draft` | Registered, not yet started. | | `pending_approval` | High-risk AI waiting for someone who manages workloads to approve it. Requests are refused until then. | | `running` | Can call models. Connect an app starts workloads directly when the pre-launch checks pass. | | `stopped` | Paused, for example by a kill switch. | | `retired` | No longer in use; kept for the record. | ## Kill switches From an incident or the risk pages, stop a workload, a key, a provider, or all workloads at once. A reason is required and recorded in the audit log and the incident timeline. ## Approvals Requests held for review (risky requests, or autonomous high-risk use) wait under [Approvals](https://app.agentkeyroute.com/approvals) until a person releases or rejects them. --- Source: https://docs.agentkeyroute.com/workloads · Markdown: https://docs.agentkeyroute.com/workloads.md # Requests & audit log Compliance & audit # Requests & audit log Every request and every configuration change is recorded. You can find any of them in seconds and prove none were altered. ## Find a request Every response carries `X-AIGov-Request-Id`, and every error message ends with it. Paste it into the search box in [Requests](https://app.agentkeyroute.com/requests) to see the decision trace: what was detected, which rule matched, which models were tried, what was redacted, the cost and the timing. ## What's recorded - App, team, key and end user (from `X-AIGov-User`). - Data classes found, decision, rule, risk score, model requested and model used, provider and, for OpenRouter, the company that served it. - Tokens, cost and latency, with the gateway's own overhead shown separately. - Prompts and answers only if the profile's capture setting asks for them, encrypted with your organisation's key. ## Tamper-evident audit log Decisions and configuration changes are chained with hashes, so changing or deleting any record breaks the chain. Verify the chain in one click in [Audit log](https://app.agentkeyroute.com/audit), and export it. Retention follows the profile. ## Send it to your SIEM Stream decisions and incidents to Splunk, Microsoft Sentinel, Datadog or any webhook from [Settings → Integrations](https://app.agentkeyroute.com/settings/integrations). --- Source: https://docs.agentkeyroute.com/audit · Markdown: https://docs.agentkeyroute.com/audit.md # Users & roles Organisation # Users & roles Each person gets a role that shows them only what they need. | Role | Who | Typical tasks | | --- | --- | --- | | **Owner** | Sets up the organisation, billing and people. | Quick setup, providers, invites, security settings | | **Security officer** | Owns policy, safety checks and incidents. | Profiles, policy library, incidents and held requests, request investigation | | **Developer** | Connects apps and tools. | Connect an app, playground, which models a key can use, why a request was blocked | | **Auditor** | Reviews evidence; read-only. | Framework scores and gaps, audit-log verification, request export, cost | | **Data governance** | Keeps the AI inventory accurate. | Register and classify workloads, attest manual controls, review profiles | | **Workload owner** | Runs specific apps and their budgets. | Their workloads, keys and cost | ## Invite people Open [Users & roles](https://app.agentkeyroute.com/settings/users), click **Invite**, enter their email and pick a role. They sign in with email and password, or with Google or Microsoft. Your plan sets how many users you can have; extra users can be added on Team and Business. ## Teams Teams own apps and their spend. Every key belongs to a team, which is used for chargeback in Cost & usage and can be used in policy rules. --- Source: https://docs.agentkeyroute.com/roles · Markdown: https://docs.agentkeyroute.com/roles.md # Security settings Organisation # Security settings Protect the console and the configuration that governs your AI traffic. ## Sign-in - **Continue with Google** and **Continue with Microsoft** (Entra ID) work alongside email and password. - **Two-step verification:** set it up under your account, then require it for everyone in [Settings → Security](https://app.agentkeyroute.com/settings/security). ## Two-administrator approval Changes to profiles, rules, providers and keys can wait for a second administrator before taking effect, which is common for SOC 2 and ISO 27001 change control. ## How your data is protected - Each organisation has its own data key. Provider keys and captured content are encrypted with it. - Organisations are isolated at the database level with row-level security. - Decisions fail closed: if something can't be checked, the request doesn't go out. More on [agentkeyroute.com/security](https://agentkeyroute.com/security). [Requests & audit logSIEM destinations and audit verification.](https://docs.agentkeyroute.com/audit)[Users & rolesLeast-privilege roles.](https://docs.agentkeyroute.com/roles) --- Source: https://docs.agentkeyroute.com/security · Markdown: https://docs.agentkeyroute.com/security.md # Plans, cost & usage Organisation # Plans, cost & usage What you pay for, what your AI use costs, and how to keep both under control. ## Plans | Plan | For | | --- | --- | | **Free** | Trying AgentKeyRoute. Every new organisation starts here. | | **Team** | Teams putting AI tools into production. | | **Business** | Organisations that need more users, frameworks and content capture. | | **Enterprise** | Custom limits, dedicated or on-premises deployment, contracts. | Current prices and limits are on [agentkeyroute.com/pricing](https://agentkeyroute.com/pricing). Plans limit users, workspace seats and modes, content capture and its storage, and monthly requests. ## Add-ons and request packs - Team and Business can add extra users, workspace seats, captured-content storage and bigger workspace disks. - One-time request packs are used before any metered overage. - When the monthly allowance is used up, requests return `plan_limit_reached` (HTTP 429). Usage alerts go out at 80% and 100%. ## Invoices and payments In [Settings → Billing](https://app.agentkeyroute.com/settings/billing): change plan, manage add-ons, see invoices (with PDFs), refunds and credits, choose billing contacts and which emails they get. ## Cost of your AI use - [Cost & usage](https://app.agentkeyroute.com/cost) attributes every request's cost to app, team, person and model, for chargeback. - Set a monthly budget on a workload; it stops at the limit. - Cache savings and routing to cheaper allowed models show up here too. ## AI use outside the gateway **Cost & usage → Add Claude usage** imports daily requests, tokens and cost per person, model and product (Claude apps, Claude Code, API) from Anthropic's Usage & Cost API, refreshed every 6 hours. Use a Claude Console Admin API key, or a Claude Enterprise key with the `read:analytics` scope. Only totals are imported, never conversation content. See also [Workloads](https://docs.agentkeyroute.com/workloads) for budgets. --- Source: https://docs.agentkeyroute.com/billing · Markdown: https://docs.agentkeyroute.com/billing.md # Overview & authentication API reference # Overview & authentication The gateway is a drop-in replacement for the OpenAI and Anthropic APIs. Request and response bodies are the vendor's own; the gateway adds governance on the way through. ## Base URLs | API | Base URL | Use with | | --- | --- | --- | | OpenAI-compatible | `https://gateway.agentkeyroute.com/v1` | OpenAI SDKs, LangChain, LlamaIndex, most tools | | Anthropic | `https://gateway.agentkeyroute.com` | Anthropic SDKs, Claude Code, Claude Agent SDK | Dedicated and on-premises installations have their own gateway address; the console shows it under **Connect an app → Developer reference**. ## Authentication Send an AgentKeyRoute API key in either header: Headers ``` Authorization: Bearer # or x-api-key: ``` Create keys in [Connect an app](https://app.agentkeyroute.com/connect) or [API keys](https://app.agentkeyroute.com/keys). A key carries its app, team and governance profile; it can expire and can be revoked instantly. Keep it in a secret manager: it's shown once. ## Models Use any model name your key may use. `GET /v1/models` returns exactly that list, filtered by the key's profile and policy. If you ask for a model policy doesn't allow for the data in a request, the gateway may redirect to an allowed one and name it in `X-AIGov-Model`. Terminal ``` curl https://gateway.agentkeyroute.com/v1/models -H "Authorization: Bearer " ``` ## Streaming Set `"stream": true` as you would with the vendor API. Checks on the request happen before the first token; answer screening, when enabled, applies to the stream. ## Next - [Endpoints & examples](https://docs.agentkeyroute.com/api/endpoints) - [Headers](https://docs.agentkeyroute.com/api/headers) - [Errors](https://docs.agentkeyroute.com/api/errors) --- Source: https://docs.agentkeyroute.com/api · Markdown: https://docs.agentkeyroute.com/api.md # Endpoints & examples API reference # Endpoints & examples Every endpoint goes through the same detection, policy, guardrails and audit. | Method | Path | What it does | | --- | --- | --- | | POST | `/v1/chat/completions` | Chat, tools and vision (OpenAI format). Streaming supported. | | POST | `/v1/responses` | OpenAI Responses API. | | POST | `/v1/messages` | Anthropic Messages API. Streaming supported. | | POST | `/v1/messages/count_tokens` | Anthropic token counting. | | POST | `/v1/completions` | Legacy text completions. | | POST | `/v1/embeddings` | Vectors for search and RAG. | | POST | `/v1/rerank` | Re-order documents by relevance to a query. | | POST | `/v1/images/generations` | Image generation. | | POST | `/v1/audio/speech` | Text to speech. | | POST | `/v1/audio/transcriptions` | Speech to text (multipart; audio bytes proxied opaquely, metadata governed). | | POST | `/v1/audio/translations` | Audio translation to English (multipart; audio bytes proxied opaquely). | | POST | `/v1/videos` | Start a video job; poll GET /v1/videos/{id}, download /content. | | POST | `/v1/moderations` | Content moderation. | | GET | `/v1/models` | Only the models this key may use. | | POST | `/v1/inspect` | Check text before it goes to an AI website. No model is called. | Not served (HTTP 501, not\_governed) Their content can't be inspected before it leaves your network: `/v1/batches`, `/v1/files`, `/v1/images/edits`, `/v1/images/variations`. ## Examples Replace `` with your key and the model names with ones your key may use. ### Chat Terminal ``` curl https://gateway.agentkeyroute.com/v1/chat/completions \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -H "X-AIGov-User: alice@example.com" \ -d '{"model":"gpt-4.1","messages":[{"role":"user","content":"Hello"}]}' ``` ### Streaming Terminal ``` curl -N https://gateway.agentkeyroute.com/v1/chat/completions \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"model":"gpt-4.1","stream":true,"messages":[{"role":"user","content":"Write a haiku"}]}' ``` ### Tools Terminal ``` curl https://gateway.agentkeyroute.com/v1/chat/completions \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4.1", "messages": [{"role": "user", "content": "Weather in Paris?"}], "tools": [{"type": "function", "function": { "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]} }}] }' ``` ### Responses Terminal ``` curl https://gateway.agentkeyroute.com/v1/responses \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"model":"gpt-4.1","input":"Hello"}' ``` ### Messages Terminal ``` curl https://gateway.agentkeyroute.com/v1/messages \ -H "x-api-key: " \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{"model":"claude-sonnet","max_tokens":512,"messages":[{"role":"user","content":"Hello"}]}' ``` ### Embeddings Terminal ``` curl https://gateway.agentkeyroute.com/v1/embeddings \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"model":"text-embedding-3-small","input":["first passage","second passage"]}' ``` ### Rerank Terminal ``` curl https://gateway.agentkeyroute.com/v1/rerank \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"model":"rerank-v3.5","query":"refund policy","documents":["Refunds within 30 days","Shipping takes 3 days"]}' ``` ### Images Terminal ``` curl https://gateway.agentkeyroute.com/v1/images/generations \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"model":"gpt-image-1","prompt":"A lighthouse at dusk","size":"1024x1024"}' ``` ### Models Terminal ``` curl https://gateway.agentkeyroute.com/v1/models -H "Authorization: Bearer " ``` ### Inspect Terminal ``` curl https://gateway.agentkeyroute.com/v1/inspect \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"destination":"chatgpt.com","user":"alice@example.com","text":"Summarise this note for John Smith"}' # → {"action":"allow|redact|block","classes":[...],"findings":[...],"redacted":"...","reason":"...","request_id":"..."} ``` --- Source: https://docs.agentkeyroute.com/api/endpoints · Markdown: https://docs.agentkeyroute.com/api/endpoints.md # Headers API reference # Headers Optional headers your app can send, and the governance headers on every response. ## Request headers | Header | Purpose | | --- | --- | | `X-AIGov-User` | The end user inside your app, for attribution in audit logs and per-person reports. Use a stable ID or email. | | `X-AIGov-Sensitivity` | Comma-separated data classes the app knows are present: phi, pii, pci, confidential, public. Can raise the class, never lower it. | ## Response headers | Header | Value | | --- | --- | | `X-AIGov-Decision` | What policy decided: `allow`, `redirect`, `deny` or `held`. | | `X-AIGov-Rule` | The rule (or guardrail) that decided. | | `X-AIGov-Model` | The model that actually served the request. | | `X-AIGov-Risk` | Risk score of the request, 0 to 100. | | `X-AIGov-Cache` | `hit` or `miss` when the profile's response cache is on. | | `X-AIGov-Request-Id` | The ID to look the request up in Requests. | Browsers can read the decision, rule, request ID, model and risk headers (they're exposed for CORS). Python: reading the headers ``` from openai import OpenAI client = OpenAI(base_url="https://gateway.agentkeyroute.com/v1", api_key="") raw = client.chat.completions.with_raw_response.create( model="gpt-4.1", messages=[{"role": "user", "content": "Hello"}], extra_headers={"X-AIGov-User": "alice@example.com"}, ) print(raw.headers["X-AIGov-Decision"], raw.headers["X-AIGov-Model"]) print(raw.parse().choices[0].message.content) ``` --- Source: https://docs.agentkeyroute.com/api/headers · Markdown: https://docs.agentkeyroute.com/api/headers.md # Errors API reference # Errors Errors use the vendor's own JSON shape: OpenAI-style on OpenAI endpoints, Anthropic-style on /v1/messages. Every message ends with the request ID. | Status | Code | Meaning | | --- | --- | --- | | 400 | `bad_request` | The request body is malformed. | | 401 | `missing_api_key · invalid_api_key · expired_api_key` | No key, a revoked key or an expired key. | | 402 | `billing_required · tenant_suspended` | The organisation can't send traffic yet. | | 403 | `policy_denied (or the rule's code)` | Policy blocked the request. The reason names the rule. | | 403 | `held_for_review` | Waiting for a human reviewer under Reviews. | | 403 | `attachments_blocked · guard_model_blocked` | Files aren't allowed, or a guard model refused the content. | | 429 | `budget_exceeded · plan_limit_reached` | A workload budget or the plan's monthly requests were used up. | | 501 | `not_governed` | The endpoint can't be inspected, so it isn't served. | | 502 | `upstream_unavailable · served_model_mismatch` | No allowed provider answered, or one served a model policy didn't allow. | ## Policy refusals in detail | Code | Why | | --- | --- | | `data_blocked` | The request contained data the profile blocks, such as card numbers or secrets. | | `prompt_injection` | The message looked like an attempt to override instructions. | | `denied_topic` | The message mentions a topic the profile blocks. | | `prompt_too_large` | The message is bigger than the profile allows. | | `output_guard_blocked` | The safety model judged the answer unsafe, so it was withheld. | ## Example 403 response (OpenAI format) ``` { "error": { "message": "Card details are not allowed by this profile (request 7f3c…)", "type": "governance_error", "code": "data_blocked" } } ``` Look the request ID up in Requests to see the full decision trace. See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) for what to do about each one. --- Source: https://docs.agentkeyroute.com/api/errors · Markdown: https://docs.agentkeyroute.com/api/errors.md # Why was a request blocked? Help # Why was a request blocked? Every refusal says why and links to a full decision trace. Start with the request ID your app received. ## Find the request Every response carries `X-AIGov-Request-Id`, and every error message ends with it. Paste it into the search box in [Requests](https://app.agentkeyroute.com/requests) to see each step: what was detected, which rule matched, which models were tried and why it was refused. ## Common codes | Code | What it means | What to do | | --- | --- | --- | | `missing_api_key · invalid_api_key · expired_api_key` | No key, or the key is wrong, revoked or expired. | Check the app sends Authorization: Bearer (or x-api-key). Create a new key if needed. | | `data_blocked` | The request contained data the profile blocks, such as card numbers or secrets. | Remove the data, or use a profile that redacts it instead. | | `policy_denied` | No rule allows this request, or no allowed model meets the key's frameworks. | Open the decision trace to see which rule or framework refused it. Add a provider or rule that fits. | | `prompt_injection` | The message looked like an attempt to override instructions. | Rephrase. If it's a false alarm, set the profile's sensitivity to Balanced or Lenient. | | `guard_model_blocked · output_guard_blocked` | The safety model judged the request, or the answer, unsafe. | The category is in the message. Adjust which categories block on the profile if it's a legitimate use. | | `denied_topic · prompt_too_large · attachments_blocked` | A blocked topic, a message bigger than allowed, or an attachment the profile doesn't accept. | Edit Content limits on the profile. | | `held_for_review` | Risky or high-risk AI use waits for a person. | An approver can release it under Approvals. | | `budget_exceeded · plan_limit_reached` | The workload's monthly budget or the plan's monthly requests are used up. | Raise the budget on the workload, buy a request pack, or upgrade. | | `upstream_unavailable` | Every allowed model failed or timed out. | Check Providers for outages or missing API keys. | | `not_governed (501)` | Endpoints whose content can't be inspected first (audio transcription, batches, file uploads). | Send text instead. | | `billing_required · tenant_suspended (402)` | The organisation needs billing set up, or is suspended. | Contact your administrator. | ## Setup problems | Symptom | Fix | | --- | --- | | 404 or connection errors from an OpenAI-compatible tool | The base URL must end in `/v1`. | | 404 from Claude Code or an Anthropic SDK | The Anthropic base URL is the gateway address **without** `/v1`. | | "Model not found" | Use a model your key may use: `GET /v1/models` lists them, as does the key's panel in [API keys](https://app.agentkeyroute.com/keys). | | A different model answered | Policy redirected the request for its data. `X-AIGov-Model` names the model; the decision trace says why. | | The key can't reach any chat model | Add a provider in [Providers & models](https://app.agentkeyroute.com/providers), or check the key's profile and policy rules. | ## Test before you connect The [Playground](https://app.agentkeyroute.com/playground) shows the decision for any message and profile without calling a model. Use it to check a rule or profile change before it affects real traffic. [All errorsEvery status and code.](https://docs.agentkeyroute.com/api/errors)[GuardrailsTune injection and safety settings.](https://docs.agentkeyroute.com/guardrails) --- Source: https://docs.agentkeyroute.com/troubleshooting · Markdown: https://docs.agentkeyroute.com/troubleshooting.md # FAQ Help # Frequently asked questions Short answers to what people ask most. Do our apps need code changes? No. Point the base URL at the gateway and use a gateway key. OpenAI and Anthropic SDKs, LangChain, Claude Code, Cursor, Codex, OpenCode and [many more](https://docs.agentkeyroute.com/connect) work unchanged. Does this slow requests down? Detection, policy and redaction are quick. A safety model, if a profile uses one, adds a model call to each request (and another for answers if those are checked). Performance shows the gateway's overhead separately from model time. Do you store our prompts? Not unless a profile asks for it. By default only metadata is kept: who, which data classes, which rule, which model, cost. When stored, content is encrypted with a key unique to your organisation. Can it run entirely in our data centre? Yes. It can be installed on-premises or air-gapped, with your own models (Ollama, vLLM, NVIDIA NIM) and no outside calls. Talk to us about Enterprise. What if a model provider goes down? Requests fall back to the next model the rules allow, automatically. Providers that stop answering are taken out of rotation until they recover. Can developers bypass it? Only if they hold vendor keys directly. Give apps gateway keys instead of vendor keys, and keep vendor keys only in AgentKeyRoute, encrypted. Govern AI websites with the browser extension. Can I use ChatGPT or the Claude desktop app through it? Their apps can't be pointed at another address. Use the [browser extension](https://docs.agentkeyroute.com/connect/browser-extension) for the websites, or tools such as Claude Code, Codex and the [chat apps](https://docs.agentkeyroute.com/connect/chat-apps) that do accept one. Which regulations are covered? HIPAA, HITRUST, GDPR, CCPA, India DPDP, the EU AI Act, ISO 42001, NIST AI RMF, SOC 2, ISO 27001, PCI DSS, SOX, GLBA, NYDFS, DORA, FERPA, FedRAMP, CMMC and CJIS. See [Frameworks & evidence](https://docs.agentkeyroute.com/compliance). Can we customise the ready-made profiles and rules? Yes. Edit any of them; built-in profiles can be restored to their defaults, and the policy history lets you roll back rule changes. My tool isn't in these docs. Will it work? If it lets you set an OpenAI or Anthropic base URL, yes. Choose [Your own application](https://docs.agentkeyroute.com/connect/your-app) in the wizard. --- Source: https://docs.agentkeyroute.com/faq · Markdown: https://docs.agentkeyroute.com/faq.md # T3 Code Coding agents # Connect T3 Code Multi-agent control plane for Claude Code, Codex & OpenCode. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install T3 Code ``` pip install openai ``` 2. Point it at the gateway ``` # Point T3 Code's Claude Code driver at AgentKeyRoute (~/.claude/settings.json): { "env": { "ANTHROPIC_BASE_URL": "https://gateway.agentkeyroute.com", "ANTHROPIC_AUTH_TOKEN": "", "ANTHROPIC_MODEL": "claude-sonnet" } } # Or apply in 1 command: mkdir -p ~/.claude && cat > ~/.claude/settings.json <<'EOF' { "env": { "ANTHROPIC_BASE_URL": "https://gateway.agentkeyroute.com", "ANTHROPIC_AUTH_TOKEN": "", "ANTHROPIC_MODEL": "claude-sonnet" } } EOF ``` Replace `` with your AgentKeyRoute key. `claude-sonnet` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start T3 Code and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the Anthropic API, so the base URL is the gateway address **without** `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/t3-code · Markdown: https://docs.agentkeyroute.com/connect/t3-code.md # GitHub Copilot Coding agents # Connect GitHub Copilot The code assistant most developers already have. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install GitHub Copilot ``` Install the GitHub Copilot extension from the Marketplace, sign in to your GitHub account. ``` 2. Point it at the gateway ``` 1. Settings → GitHub Copilot → Models → "Manage BYOK Models". 2. Choose provider: OpenAI-Compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Model ID: gpt-4.1 6. Save, then pick the model from the Copilot Chat model picker. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start GitHub Copilot and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/github-copilot · Markdown: https://docs.agentkeyroute.com/connect/github-copilot.md # Claude Code Coding agents # Connect Claude Code Anthropic's coding agent. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Claude Code Terminal ``` npm install -g @anthropic-ai/claude-code ``` 2. Point it at the gateway ``` export ANTHROPIC_BASE_URL="https://gateway.agentkeyroute.com" export ANTHROPIC_AUTH_TOKEN="" export ANTHROPIC_MODEL="claude-sonnet" claude ``` Replace `` with your AgentKeyRoute key. `claude-sonnet` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Claude Code and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the Anthropic API, so the base URL is the gateway address **without** `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/claude-code · Markdown: https://docs.agentkeyroute.com/connect/claude-code.md # Codex CLI Coding agents # Connect Codex CLI OpenAI's coding agent. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Codex CLI Terminal ``` npm install -g @openai/codex ``` 2. Point it at the gateway ``` model = "gpt-4.1" model_provider = "agentkeyroute" [model_providers.agentkeyroute] name = "AgentKeyRoute gateway" base_url = "https://gateway.agentkeyroute.com/v1" env_key = "AGENTKEYROUTE_API_KEY" wire_api = "responses" ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Codex CLI and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/codex · Markdown: https://docs.agentkeyroute.com/connect/codex.md # OpenCode Coding agents # Connect OpenCode Open-source coding agent, terminal and desktop. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install OpenCode ``` npm install -g opencode-ai ``` 2. Point it at the gateway ``` { "$schema": "https://opencode.ai/config.json", "provider": { "agentkeyroute": { "npm": "@ai-sdk/openai-compatible", "name": "AgentKeyRoute", "options": { "baseURL": "https://gateway.agentkeyroute.com/v1", "apiKey": "{env:AGENTKEYROUTE_API_KEY}" }, "models": { "gpt-4.1": { "name": "gpt-4.1" } } } }, "model": "agentkeyroute/gpt-4.1" } ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start OpenCode and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/opencode · Markdown: https://docs.agentkeyroute.com/connect/opencode.md # Aider Coding agents # Connect Aider Pair programming in the terminal. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Aider Terminal ``` python -m pip install aider-install aider-install ``` 2. Point it at the gateway Terminal ``` export OPENAI_API_BASE="https://gateway.agentkeyroute.com/v1" export OPENAI_API_KEY="" aider --model openai/gpt-4.1 ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Aider and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/aider · Markdown: https://docs.agentkeyroute.com/connect/aider.md # Goose Coding agents # Connect Goose Block's open-source agent, CLI and desktop. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Goose ``` curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bash ``` 2. Point it at the gateway ``` export GOOSE_PROVIDER="openai" export OPENAI_HOST="https://gateway.agentkeyroute.com" export OPENAI_API_KEY="" export GOOSE_MODEL="gpt-4.1" goose session ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Goose and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/goose · Markdown: https://docs.agentkeyroute.com/connect/goose.md # Crush Coding agents # Connect Crush Charm's terminal coding agent. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Crush ``` npm install -g @charmland/crush ``` 2. Point it at the gateway ``` { "$schema": "https://charm.land/crush.json", "providers": { "agentkeyroute": { "type": "openai", "name": "AgentKeyRoute", "base_url": "https://gateway.agentkeyroute.com/v1", "api_key": "$AGENTKEYROUTE_API_KEY", "models": [{ "id": "gpt-4.1", "name": "gpt-4.1", "context_window": 128000, "default_max_tokens": 8192 }] } } } ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Crush and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/crush · Markdown: https://docs.agentkeyroute.com/connect/crush.md # Qwen Code Coding agents # Connect Qwen Code Open-source terminal coding agent. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Qwen Code Terminal ``` npm install -g @qwen-code/qwen-code ``` 2. Point it at the gateway Terminal ``` export OPENAI_BASE_URL="https://gateway.agentkeyroute.com/v1" export OPENAI_API_KEY="" export OPENAI_MODEL="gpt-4.1" qwen ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Qwen Code and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/qwen-code · Markdown: https://docs.agentkeyroute.com/connect/qwen-code.md # OpenHands Coding agents # Connect OpenHands Autonomous software-engineering agent. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install OpenHands Install ``` Download and install it from docs.all-hands.dev (local app, Docker or CLI). ``` 2. Point it at the gateway ``` 1. Settings → LLM → turn on Advanced. 2. Custom model: openai/gpt-4.1 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API key: 5. Save changes. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start OpenHands and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/openhands · Markdown: https://docs.agentkeyroute.com/connect/openhands.md # Open Interpreter Coding agents # Connect Open Interpreter Runs code on your computer from chat. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Open Interpreter Terminal ``` pip install open-interpreter ``` 2. Point it at the gateway Terminal ``` interpreter --api_base "https://gateway.agentkeyroute.com/v1" --api_key "" --model openai/gpt-4.1 ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Open Interpreter and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/open-interpreter · Markdown: https://docs.agentkeyroute.com/connect/open-interpreter.md # Warp Coding agents # Connect Warp AI-native terminal (BYO inference, 2026). Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Warp Install ``` Download and install it from warp.dev. ``` 2. Point it at the gateway Warp · Bring Your Own Inference ``` 1. Settings → AI → Providers → Add Provider. 2. Provider type: OpenAI-compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Model ID: gpt-4.1 6. Save, then pick the model in the Warp AI input bar. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start Warp and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/warp · Markdown: https://docs.agentkeyroute.com/connect/warp.md # Cursor Editors & IDE extensions # Connect Cursor AI code editor. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Cursor Install ``` Download and install it from cursor.com. Sign in, then open the project you want to work on. ``` 2. Point it at the gateway Cursor settings ``` 1. Cursor Settings → Models. 2. OpenAI API Key: 3. Turn on Override OpenAI Base URL: https://gateway.agentkeyroute.com/v1 4. Add custom model: gpt-4.1 5. Click Verify, then pick gpt-4.1 in chat. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Cursor's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/cursor · Markdown: https://docs.agentkeyroute.com/connect/cursor.md # Cline Editors & IDE extensions # Connect Cline Autonomous coding agent for VS Code. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Cline VS Code ``` 1. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac). 2. Search for "Cline" and click Install. 3. Open it from the activity bar on the left. ``` 2. Point it at the gateway Cline settings ``` 1. Open the Cline panel in VS Code and click the settings (gear) icon. 2. API Provider: OpenAI Compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Model ID: gpt-4.1 6. Click Done, then start a task. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Cline's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/cline · Markdown: https://docs.agentkeyroute.com/connect/cline.md # Roo Code Editors & IDE extensions # Connect Roo Code Multi-mode coding agent for VS Code. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Roo Code VS Code ``` 1. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac). 2. Search for "Roo Code" and click Install. 3. Open it from the activity bar on the left. ``` 2. Point it at the gateway Roo Code settings ``` 1. Open the Roo Code panel in VS Code and click the settings (gear) icon. 2. API Provider: OpenAI Compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Model ID: gpt-4.1 6. Click Done, then start a task. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Roo Code's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/roo-code · Markdown: https://docs.agentkeyroute.com/connect/roo-code.md # Kilo Code Editors & IDE extensions # Connect Kilo Code Open-source coding agent for VS Code. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Kilo Code VS Code ``` 1. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac). 2. Search for "Kilo Code" and click Install. 3. Open it from the activity bar on the left. ``` 2. Point it at the gateway Kilo Code settings ``` 1. Open the Kilo Code panel in VS Code and click the settings (gear) icon. 2. API Provider: OpenAI Compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Model ID: gpt-4.1 6. Click Done, then start a task. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Kilo Code's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/kilo-code · Markdown: https://docs.agentkeyroute.com/connect/kilo-code.md # Continue Editors & IDE extensions # Connect Continue Assistant for VS Code and JetBrains. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Continue ``` 1. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac). 2. Search for "Continue" and click Install. 3. Open it from the activity bar on the left. ``` 2. Point it at the gateway ~/.continue/config.yaml ``` name: AgentKeyRoute version: 1.0.0 schema: v1 models: - name: gpt-4.1 (AgentKeyRoute) provider: openai model: gpt-4.1 apiBase: https://gateway.agentkeyroute.com/v1 apiKey: roles: [chat, edit, apply] ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Continue's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/continue · Markdown: https://docs.agentkeyroute.com/connect/continue.md # Zed Editors & IDE extensions # Connect Zed Fast editor with a built-in agent. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Zed Install ``` Download and install it from zed.dev. ``` 2. Point it at the gateway ``` { "language_models": { "openai": { "api_url": "https://gateway.agentkeyroute.com/v1", "available_models": [ { "name": "gpt-4.1", "display_name": "gpt-4.1 (AgentKeyRoute)", "max_tokens": 128000 } ] } } } ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Zed's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/zed · Markdown: https://docs.agentkeyroute.com/connect/zed.md # Windsurf Editors & IDE extensions # Connect Windsurf Codeium's agentic IDE. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Windsurf Install ``` Download and install it from codeium.com/windsurf. ``` 2. Point it at the gateway Windsurf · Add OpenAI-Compatible Provider ``` 1. Settings → Windsurf Settings → Cascade → Add Custom Provider. 2. Provider type: OpenAI-compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Model: gpt-4.1 6. Save, then choose the provider from the Cascade model picker. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Windsurf's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/windsurf · Markdown: https://docs.agentkeyroute.com/connect/windsurf.md # JetBrains AI Assistant Editors & IDE extensions # Connect JetBrains AI Assistant AI inside IntelliJ, PyCharm, GoLand and friends. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install JetBrains AI Assistant JetBrains Marketplace ``` Open any JetBrains IDE → Settings → Plugins → Marketplace → search "AI Assistant" → Install. ``` 2. Point it at the gateway JetBrains AI · Custom endpoint ``` 1. Settings → Tools → AI Assistant → Models. 2. Provider: OpenAI-Compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Add model: gpt-4.1 6. Apply, then open the AI chat. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open JetBrains AI Assistant's chat, choose the model you configured and send a message. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles). - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All editors & ide extensionsAI inside the editor your developers already use](https://docs.agentkeyroute.com/connect/editors)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/jetbrains-ai · Markdown: https://docs.agentkeyroute.com/connect/jetbrains-ai.md # Open WebUI Chat & desktop apps # Connect Open WebUI Self-hosted ChatGPT-style workspace. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Open WebUI ``` docker pull ghcr.io/open-webui/open-webui:main ``` 2. Point it at the gateway ``` 1. Admin Panel → Settings → Connections. 2. Under OpenAI API, add a connection. 3. URL: https://gateway.agentkeyroute.com/v1 4. Key: 5. Save. Models this key may use appear in the model list. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in Open WebUI, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/open-webui · Markdown: https://docs.agentkeyroute.com/connect/open-webui.md # LibreChat Chat & desktop apps # Connect LibreChat Self-hosted multi-model chat. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install LibreChat Terminal ``` git clone https://github.com/danny-avila/LibreChat.git cd LibreChat cp .env.example .env docker compose up -d ``` 2. Point it at the gateway ``` endpoints: custom: - name: "AgentKeyRoute" apiKey: "${AGENTKEYROUTE_API_KEY}" baseURL: "https://gateway.agentkeyroute.com/v1" models: default: ["gpt-4.1"] fetch: true titleConvo: true titleModel: "current_model" ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in LibreChat, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/librechat · Markdown: https://docs.agentkeyroute.com/connect/librechat.md # LobeChat Chat & desktop apps # Connect LobeChat Self-hosted chat with agents and plugins. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install LobeChat Docker ``` docker pull lobehub/lobe-chat ``` 2. Point it at the gateway Environment ``` OPENAI_API_KEY= OPENAI_PROXY_URL=https://gateway.agentkeyroute.com/v1 ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in LobeChat, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/lobechat · Markdown: https://docs.agentkeyroute.com/connect/lobechat.md # Jan Chat & desktop apps # Connect Jan Desktop AI app. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Jan Install ``` Download and install it from jan.ai. ``` 2. Point it at the gateway Jan settings ``` 1. Settings → Model Providers → add a provider. 2. Name: AgentKeyRoute 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API key: 5. Add the model gpt-4.1 (or refresh to list them). ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in Jan, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/jan · Markdown: https://docs.agentkeyroute.com/connect/jan.md # Msty Chat & desktop apps # Connect Msty Desktop AI app. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Msty Install ``` Download and install it from msty.app. ``` 2. Point it at the gateway Msty settings ``` 1. Add Remote Model Provider → OpenAI Compatible. 2. API Endpoint: https://gateway.agentkeyroute.com/v1 3. API Key: 4. Add the model gpt-4.1, then Save. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in Msty, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/msty · Markdown: https://docs.agentkeyroute.com/connect/msty.md # Cherry Studio Chat & desktop apps # Connect Cherry Studio Desktop AI app. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Cherry Studio Install ``` Download and install it from cherry-ai.com. ``` 2. Point it at the gateway Cherry Studio settings ``` 1. Settings → Model Provider → Add, type OpenAI. 2. API Host: https://gateway.agentkeyroute.com 3. API Key: 4. Manage → add the model gpt-4.1. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in Cherry Studio, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/cherry-studio · Markdown: https://docs.agentkeyroute.com/connect/cherry-studio.md # Chatbox Chat & desktop apps # Connect Chatbox Desktop and mobile AI client. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Chatbox Install ``` Download and install it from chatboxai.app. ``` 2. Point it at the gateway Chatbox settings ``` 1. Settings → Model Provider → Add custom provider. 2. API Mode: OpenAI API Compatible 3. API Host: https://gateway.agentkeyroute.com 4. API Path: /v1/chat/completions 5. API Key: 6. Model: gpt-4.1 ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in Chatbox, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/chatbox · Markdown: https://docs.agentkeyroute.com/connect/chatbox.md # TypingMind Chat & desktop apps # Connect TypingMind Chat front-end for teams. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install TypingMind Install ``` Download and install it from typingmind.com. Use the web app or the desktop app. ``` 2. Point it at the gateway TypingMind ``` 1. Models → Add Custom Model. 2. Endpoint: https://gateway.agentkeyroute.com/v1/chat/completions 3. Model ID: gpt-4.1 4. Custom header: Authorization: Bearer 5. Test, then Add Model. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in TypingMind, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/typingmind · Markdown: https://docs.agentkeyroute.com/connect/typingmind.md # Raycast AI Chat & desktop apps # Connect Raycast AI AI inside Raycast launcher (Mac). Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Raycast AI Install ``` Download and install it from raycast.com. Requires Raycast Pro for custom providers. ``` 2. Point it at the gateway ``` providers: - id: agentkeyroute name: AgentKeyRoute base_url: https://gateway.agentkeyroute.com/v1 api_key: models: - id: gpt-4.1 name: gpt-4.1 context: 128000 ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Start a new chat in Raycast AI, pick the model and say hello. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All chat & desktop appsTeam chat workspaces and desktop AI clients](https://docs.agentkeyroute.com/connect/chat-apps)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/raycast-ai · Markdown: https://docs.agentkeyroute.com/connect/raycast-ai.md # Vapi Voice agents # Connect Vapi Phone and realtime voice AI. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Vapi Install ``` Download and install it from vapi.ai. Sign in and create an assistant. ``` 2. Point it at the gateway Vapi · Custom LLM provider ``` 1. Dashboard → Assistants → your assistant → Model. 2. Provider: Custom LLM 3. Model URL: https://gateway.agentkeyroute.com/v1/chat/completions 4. API Key: 5. Model name: gpt-4.1 6. Save and run a test call. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open Vapi's test / preview call and speak into it. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All voice agentsPhone and realtime voice AI](https://docs.agentkeyroute.com/connect/voice-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/vapi · Markdown: https://docs.agentkeyroute.com/connect/vapi.md # ElevenLabs Agents Voice agents # Connect ElevenLabs Agents Conversational AI from ElevenLabs. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install ElevenLabs Agents Install ``` Download and install it from elevenlabs.io/app/conversational-ai. Sign in and create an agent. ``` 2. Point it at the gateway ElevenLabs · Custom LLM ``` 1. Dashboard → Conversational AI → Agents → your agent → LLM. 2. Provider: Custom LLM 3. Server URL: https://gateway.agentkeyroute.com/v1 4. Model ID: gpt-4.1 5. Auth → Secrets → add OPENAI_API_KEY = 6. Save and open the test console. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open ElevenLabs Agents's test / preview call and speak into it. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All voice agentsPhone and realtime voice AI](https://docs.agentkeyroute.com/connect/voice-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/elevenlabs-agents · Markdown: https://docs.agentkeyroute.com/connect/elevenlabs-agents.md # LiveKit Agents Voice agents # Connect LiveKit Agents Realtime voice and media agents. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install LiveKit Agents ``` pip install livekit-agents "livekit-plugins-openai" ``` 2. Point it at the gateway ``` from livekit.agents import AgentSession, Agent from livekit.plugins import openai session = AgentSession( llm=openai.LLM( model="gpt-4.1", base_url="https://gateway.agentkeyroute.com/v1", api_key="", ), # Pair with your STT/TTS plugins of choice. ) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Open LiveKit Agents's test / preview call and speak into it. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All voice agentsPhone and realtime voice AI](https://docs.agentkeyroute.com/connect/voice-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/livekit-agents · Markdown: https://docs.agentkeyroute.com/connect/livekit-agents.md # Salesforce Agentforce Enterprise copilots & search # Connect Salesforce Agentforce Einstein / Agentforce via Model Builder. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Salesforce Agentforce Install ``` Download and install it from your Salesforce org. Agentforce is part of your Salesforce org — no separate install. ``` 2. Point it at the gateway Einstein Studio · Add external model ``` 1. Setup → Einstein → Einstein Studio → Model Builder → Add Model. 2. Platform: OpenAI (the "Add External Model" flow accepts any OpenAI-compatible endpoint). 3. Endpoint: https://gateway.agentkeyroute.com/v1/chat/completions 4. API Key: 5. Model: gpt-4.1 6. Connect, test with a prompt, then assign the model to a Prompt Template or an Agentforce agent. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works In Salesforce Agentforce, run a prompt or agent that uses the configured model. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All enterprise copilots & searchBusiness copilots and company-wide knowledge AI](https://docs.agentkeyroute.com/connect/enterprise-copilots)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/salesforce-agentforce · Markdown: https://docs.agentkeyroute.com/connect/salesforce-agentforce.md # ServiceNow Now Assist Enterprise copilots & search # Connect ServiceNow Now Assist BYOLLM for Now Assist skills. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install ServiceNow Now Assist Install ``` Download and install it from your ServiceNow instance. Now Assist is already in your ServiceNow instance. ``` 2. Point it at the gateway Now Assist Admin · BYOLLM ``` 1. Now Assist Admin → Skill Builder → Models → Add Custom Model. 2. Type: OpenAI-compatible (BYOLLM) 3. API URL: https://gateway.agentkeyroute.com/v1/chat/completions 4. API Key: 5. Model name: gpt-4.1 6. Save, then set this model on the skills you want governed by AgentKeyRoute. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works In ServiceNow Now Assist, run a prompt or agent that uses the configured model. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All enterprise copilots & searchBusiness copilots and company-wide knowledge AI](https://docs.agentkeyroute.com/connect/enterprise-copilots)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/servicenow-now-assist · Markdown: https://docs.agentkeyroute.com/connect/servicenow-now-assist.md # Glean Enterprise copilots & search # Connect Glean Enterprise search & knowledge AI. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Glean Install ``` Download and install it from your Glean admin console. Glean is already deployed; just open the admin console. ``` 2. Point it at the gateway Glean · Model Hub ``` 1. Admin Console → Platform → Model Hub → Add Custom LLM. 2. Type: OpenAI-compatible 3. Base URL: https://gateway.agentkeyroute.com/v1 4. API Key: 5. Model name: gpt-4.1 6. Save, then set this LLM as the default for Glean Assistant, or scope it to specific agents. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works In Glean, run a prompt or agent that uses the configured model. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All enterprise copilots & searchBusiness copilots and company-wide knowledge AI](https://docs.agentkeyroute.com/connect/enterprise-copilots)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/glean · Markdown: https://docs.agentkeyroute.com/connect/glean.md # Browser Use Browser & web agents # Connect Browser Use Open-source browser agent (89% WebVoyager). Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Browser Use Terminal ``` pip install browser-use ``` 2. Point it at the gateway Python ``` from browser_use import Agent from langchain_openai import ChatOpenAI llm = ChatOpenAI(model="gpt-4.1", base_url="https://gateway.agentkeyroute.com/v1", api_key="") agent = Agent(task="Book a flight from SFO to JFK next Friday", llm=llm) await agent.run() ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the agent on one of its sample tasks; check the gateway Requests tab for the call. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All browser & web agentsAutonomous agents that drive a browser](https://docs.agentkeyroute.com/connect/browser-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/browser-use · Markdown: https://docs.agentkeyroute.com/connect/browser-use.md # Skyvern Browser & web agents # Connect Skyvern Vision-first browser agent (open-source). Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Skyvern Terminal ``` docker pull ghcr.io/skyvern-ai/skyvern:latest ``` 2. Point it at the gateway ``` export OPENAI_API_BASE="https://gateway.agentkeyroute.com/v1" export OPENAI_API_KEY="" export LLM_KEY=openai/gpt-4.1 export ENABLE_OPENAI=true ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the agent on one of its sample tasks; check the gateway Requests tab for the call. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All browser & web agentsAutonomous agents that drive a browser](https://docs.agentkeyroute.com/connect/browser-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/skyvern · Markdown: https://docs.agentkeyroute.com/connect/skyvern.md # Claude Agent SDK Agent frameworks & SDKs # Connect Claude Agent SDK Build agents on Claude Code's engine. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Claude Agent SDK ``` pip install claude-agent-sdk ``` 2. Point it at the gateway ``` # export ANTHROPIC_BASE_URL="https://gateway.agentkeyroute.com" # export ANTHROPIC_AUTH_TOKEN="" import asyncio from claude_agent_sdk import query, ClaudeAgentOptions async def main(): async for msg in query(prompt="Hello", options=ClaudeAgentOptions(model="claude-sonnet")): print(msg) asyncio.run(main()) ``` Replace `` with your AgentKeyRoute key. `claude-sonnet` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the Anthropic API, so the base URL is the gateway address **without** `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/claude-agent-sdk · Markdown: https://docs.agentkeyroute.com/connect/claude-agent-sdk.md # OpenAI Agents SDK Agent frameworks & SDKs # Connect OpenAI Agents SDK Multi-agent workflows with handoffs. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install OpenAI Agents SDK Terminal ``` pip install openai-agents ``` 2. Point it at the gateway Python ``` from openai import AsyncOpenAI from agents import Agent, Runner, set_default_openai_api, set_default_openai_client, set_tracing_disabled set_default_openai_client(AsyncOpenAI(base_url="https://gateway.agentkeyroute.com/v1", api_key="")) set_default_openai_api("chat_completions") set_tracing_disabled(True) # traces would otherwise go to OpenAI agent = Agent(name="Assistant", instructions="You are helpful.", model="gpt-4.1") print(Runner.run_sync(agent, "Hello").final_output) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/openai-agents · Markdown: https://docs.agentkeyroute.com/connect/openai-agents.md # LangChain & LangGraph Agent frameworks & SDKs # Connect LangChain & LangGraph Chains, tools and graph agents. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install LangChain & LangGraph ``` pip install langchain-openai langgraph ``` 2. Point it at the gateway ``` from langchain_openai import ChatOpenAI from langgraph.prebuilt import create_react_agent llm = ChatOpenAI(model="gpt-4.1", base_url="https://gateway.agentkeyroute.com/v1", api_key="") agent = create_react_agent(llm, tools=[]) print(agent.invoke({"messages": [("user", "Hello")]})["messages"][-1].content) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/langchain · Markdown: https://docs.agentkeyroute.com/connect/langchain.md # LlamaIndex Agent frameworks & SDKs # Connect LlamaIndex Agents and RAG over your data. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install LlamaIndex Terminal ``` pip install llama-index llama-index-llms-openai-like ``` 2. Point it at the gateway Python ``` from llama_index.llms.openai_like import OpenAILike llm = OpenAILike( model="gpt-4.1", api_base="https://gateway.agentkeyroute.com/v1", api_key="", is_chat_model=True, is_function_calling_model=True, ) print(llm.complete("Hello")) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/llamaindex · Markdown: https://docs.agentkeyroute.com/connect/llamaindex.md # CrewAI Agent frameworks & SDKs # Connect CrewAI Teams of role-playing agents. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install CrewAI Terminal ``` pip install crewai ``` 2. Point it at the gateway Python ``` from crewai import Agent, LLM llm = LLM(model="openai/gpt-4.1", base_url="https://gateway.agentkeyroute.com/v1", api_key="") agent = Agent(role="Analyst", goal="Answer questions", backstory="Careful and concise", llm=llm) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/crewai · Markdown: https://docs.agentkeyroute.com/connect/crewai.md # AutoGen Agent frameworks & SDKs # Connect AutoGen Microsoft's multi-agent framework. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install AutoGen Terminal ``` pip install autogen-agentchat "autogen-ext[openai]" ``` 2. Point it at the gateway Python ``` from autogen_agentchat.agents import AssistantAgent from autogen_ext.models.openai import OpenAIChatCompletionClient client = OpenAIChatCompletionClient( model="gpt-4.1", base_url="https://gateway.agentkeyroute.com/v1", api_key="", model_info={"vision": False, "function_calling": True, "json_output": True, "structured_output": True, "family": "unknown"}, ) agent = AssistantAgent("assistant", model_client=client) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/autogen · Markdown: https://docs.agentkeyroute.com/connect/autogen.md # Pydantic AI Agent frameworks & SDKs # Connect Pydantic AI Type-safe Python agents. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Pydantic AI Terminal ``` pip install pydantic-ai ``` 2. Point it at the gateway Python ``` from pydantic_ai import Agent from pydantic_ai.models.openai import OpenAIChatModel from pydantic_ai.providers.openai import OpenAIProvider model = OpenAIChatModel("gpt-4.1", provider=OpenAIProvider(base_url="https://gateway.agentkeyroute.com/v1", api_key="")) agent = Agent(model) print(agent.run_sync("Hello").output) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/pydantic-ai · Markdown: https://docs.agentkeyroute.com/connect/pydantic-ai.md # Vercel AI SDK & Mastra Agent frameworks & SDKs # Connect Vercel AI SDK & Mastra TypeScript AI apps and agents. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Vercel AI SDK & Mastra ``` npm install ai @ai-sdk/openai-compatible ``` 2. Point it at the gateway ``` import { createOpenAICompatible } from "@ai-sdk/openai-compatible"; import { generateText } from "ai"; const gateway = createOpenAICompatible({ name: "agentkeyroute", baseURL: "https://gateway.agentkeyroute.com/v1", apiKey: "" }); const { text } = await generateText({ model: gateway("gpt-4.1"), prompt: "Hello" }); console.log(text); ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/vercel-ai · Markdown: https://docs.agentkeyroute.com/connect/vercel-ai.md # DSPy Agent frameworks & SDKs # Connect DSPy Programming, not prompting. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install DSPy Terminal ``` pip install dspy ``` 2. Point it at the gateway Python ``` import dspy lm = dspy.LM("openai/gpt-4.1", api_base="https://gateway.agentkeyroute.com/v1", api_key="") dspy.configure(lm=lm) print(dspy.Predict("question -> answer")(question="Hello").answer) ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/dspy · Markdown: https://docs.agentkeyroute.com/connect/dspy.md # smolagents Agent frameworks & SDKs # Connect smolagents Hugging Face's code agents. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install smolagents Terminal ``` pip install "smolagents[openai]" ``` 2. Point it at the gateway Python ``` from smolagents import CodeAgent, OpenAIServerModel model = OpenAIServerModel(model_id="gpt-4.1", api_base="https://gateway.agentkeyroute.com/v1", api_key="") CodeAgent(tools=[], model=model).run("Hello") ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the code once. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All agent frameworks & sdksAgents and AI features your engineers build](https://docs.agentkeyroute.com/connect/frameworks)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/smolagents · Markdown: https://docs.agentkeyroute.com/connect/smolagents.md # n8n Workflow & no-code platforms # Connect n8n Workflow automation with AI agents. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install n8n ``` npx n8n ``` 2. Point it at the gateway n8n ``` 1. Credentials → Create credential → OpenAI. 2. API Key: 3. Base URL: https://gateway.agentkeyroute.com/v1 4. Save. In an OpenAI Chat Model or AI Agent node, choose this credential. 5. Model: pick from the list, or choose By ID and enter gpt-4.1. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the workflow (or test the node) once in n8n. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All workflow & no-code platformsAutomations and agents built visually](https://docs.agentkeyroute.com/connect/workflow-platforms)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/n8n · Markdown: https://docs.agentkeyroute.com/connect/n8n.md # Dify Workflow & no-code platforms # Connect Dify LLM app and agent builder. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Dify ``` Sign in at cloud.dify.ai. ``` 2. Point it at the gateway Dify ``` 1. Settings → Model Provider → install OpenAI-API-compatible. 2. Add Model, type LLM. 3. Model name: gpt-4.1 4. API Key: 5. API endpoint URL: https://gateway.agentkeyroute.com/v1 6. Save, then select it in your app or workflow. ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the workflow (or test the node) once in Dify. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All workflow & no-code platformsAutomations and agents built visually](https://docs.agentkeyroute.com/connect/workflow-platforms)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/dify · Markdown: https://docs.agentkeyroute.com/connect/dify.md # Flowise Workflow & no-code platforms # Connect Flowise Drag-and-drop agent flows. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Flowise Terminal ``` npx flowise start ``` 2. Point it at the gateway Flowise ``` 1. Add a ChatOpenAI Custom node to the flow. 2. Connect Credential → new OpenAI API credential with the key 3. Model Name: gpt-4.1 4. Additional Parameters → BasePath: https://gateway.agentkeyroute.com/v1 ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the workflow (or test the node) once in Flowise. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All workflow & no-code platformsAutomations and agents built visually](https://docs.agentkeyroute.com/connect/workflow-platforms)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/flowise · Markdown: https://docs.agentkeyroute.com/connect/flowise.md # Langflow Workflow & no-code platforms # Connect Langflow Visual builder for agents and RAG. Point it at AgentKeyRoute so every request follows your governance profile and is recorded. Get a key with the right protection In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test. ## Setup 1. Install Langflow Terminal ``` pip install langflow langflow run ``` 2. Point it at the gateway Langflow ``` 1. Add an OpenAI model component. 2. OpenAI API Key: 3. OpenAI API Base: https://gateway.agentkeyroute.com/v1 (under Controls / advanced) 4. Model Name: gpt-4.1 ``` Replace `` with your AgentKeyRoute key. `gpt-4.1` is an example: use a model your key may use (`GET /v1/models` lists them). 3. Check it works Run the workflow (or test the node) once in Langflow. The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted. ## Good to know - It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests. - It uses the OpenAI-compatible API, so the base URL ends in `/v1`. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it. - Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting) ## Related [All workflow & no-code platformsAutomations and agents built visually](https://docs.agentkeyroute.com/connect/workflow-platforms)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers) --- Source: https://docs.agentkeyroute.com/connect/langflow · Markdown: https://docs.agentkeyroute.com/connect/langflow.md