{"slug":"set-up-llm-clients","title":"Set up LLM clients","tags":["tailscale"],"agent_summary":"Last validated: Apr 9, 2026","trigger_phrases":[],"runnable":false,"markdown":"\r\n# Set up LLM clients\r\n\r\nLast validated: Apr 9, 2026\r\n\r\nAperture by Tailscaleis currently [in alpha](https://tailscale.com/docs/reference/tailscale-release-stages#alpha).\r\n\r\nAfter [setting up Aperture](https://tailscale.com/docs/aperture/get-started) and [configuring your providers](https://tailscale.com/docs/aperture/set-up-providers), set up your LLM clients to route requests through your Aperture instance.\r\n\r\nAperture sits between your LLM clients and your upstream providers and routes requests from each client to the appropriate provider. When a client sends a request specifying a model name, Aperture routes it to the provider that serves that model and automatically injects authentication. Any LLM client that supports a custom base URL can use Aperture.\r\n\r\nUse the following guides to configure an LLM client to use your Aperture instance. Refer to the [provider compatibility reference](https://tailscale.com/docs/aperture/provider-compatibility) for the full list of supported providers and API formats.\r\n\r\n[**Use Claude Code with Aperture** \\\\\r\n\\\\\r\nConfigure Claude Code to route requests through your Aperture proxy.](https://tailscale.com/docs/aperture/how-to/use-claude-code) [**Use Codex with Aperture** \\\\\r\n\\\\\r\nConfigure OpenAI Codex to route requests through your Aperture proxy.](https://tailscale.com/docs/aperture/how-to/use-codex) [**Use OpenCode with Aperture** \\\\\r\n\\\\\r\nConfigure OpenCode to route requests through your Aperture proxy.](https://tailscale.com/docs/aperture/how-to/use-opencode) [**Use OpenAI-compatible tools with Aperture** \\\\\r\n\\\\\r\nConfigure Gemini CLI, Roo Code, Cline, and other OpenAI-compatible tools to route requests through Aperture.](https://tailscale.com/docs/aperture/how-to/use-openai-compatible-tools)\r\n\r\n![Project Logo](https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed)\r\n\r\nAsk AI\r\n\r\nreCAPTCHA\r\n\r\nRecaptcha requires verification.\r\n\r\nprotected by **reCAPTCHA**\r\n","html":"<h1>Set up LLM clients</h1>\n<p>Last validated: Apr 9, 2026</p>\n<p>Aperture by Tailscaleis currently <a href=\"https://tailscale.com/docs/reference/tailscale-release-stages#alpha\">in alpha</a>.</p>\n<p>After <a href=\"https://tailscale.com/docs/aperture/get-started\">setting up Aperture</a> and <a href=\"https://tailscale.com/docs/aperture/set-up-providers\">configuring your providers</a>, set up your LLM clients to route requests through your Aperture instance.</p>\n<p>Aperture sits between your LLM clients and your upstream providers and routes requests from each client to the appropriate provider. When a client sends a request specifying a model name, Aperture routes it to the provider that serves that model and automatically injects authentication. Any LLM client that supports a custom base URL can use Aperture.</p>\n<p>Use the following guides to configure an LLM client to use your Aperture instance. Refer to the <a href=\"https://tailscale.com/docs/aperture/provider-compatibility\">provider compatibility reference</a> for the full list of supported providers and API formats.</p>\n<p><a href=\"https://tailscale.com/docs/aperture/how-to/use-claude-code\"><strong>Use Claude Code with Aperture</strong> \\\r\n\\\r\nConfigure Claude Code to route requests through your Aperture proxy.</a> <a href=\"https://tailscale.com/docs/aperture/how-to/use-codex\"><strong>Use Codex with Aperture</strong> \\\r\n\\\r\nConfigure OpenAI Codex to route requests through your Aperture proxy.</a> <a href=\"https://tailscale.com/docs/aperture/how-to/use-opencode\"><strong>Use OpenCode with Aperture</strong> \\\r\n\\\r\nConfigure OpenCode to route requests through your Aperture proxy.</a> <a href=\"https://tailscale.com/docs/aperture/how-to/use-openai-compatible-tools\"><strong>Use OpenAI-compatible tools with Aperture</strong> \\\r\n\\\r\nConfigure Gemini CLI, Roo Code, Cline, and other OpenAI-compatible tools to route requests through Aperture.</a></p>\n<p><img src=\"https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed\" alt=\"Project Logo\"></p>\n<p>Ask AI</p>\n<p>reCAPTCHA</p>\n<p>Recaptcha requires verification.</p>\n<p>protected by <strong>reCAPTCHA</strong></p>\n"}