Install with AI works with OpenAI, Anthropic, Amazon Bedrock, Gemini, Vertex AI, Groq, Cerebras, OpenRouter, LangChain and more.
What it sets up
When you runinf instrument, you’ll be asked which Inference platform product to set up:
Pass
--mode gateway, --mode tracing, or --mode both to skip the prompt (useful in CI or scripted runs).
1
Install the CLI
Install the Inference CLI globally.
2
Sign in
Sign in with your Inference account. Your browser will open to authenticate.
3
Run instrumentation in your project
Navigate to your project root and run instrumentation.The command guides you through the following workflow:
- Pick the project to instrument into. If you don’t have one, choose Create a new project and name it — the CLI creates it on the spot.
- Pick what to instrument: gateway, tracing, or both.
- Choose whether to create a new API key for the project.
- Yes: the CLI mints a project-scoped key and writes it to
.envasINFERENCE_API_KEY. - No: the CLI writes
INFERENCE_API_KEY=PASTE_YOUR_API_KEY_HEREto.envand prints the dashboard link where you can create a key yourself. Replace the placeholder with the real key before running your app. If.envalready has a real key, the CLI leaves it unchanged.
- Yes: the CLI mints a project-scoped key and writes it to
- Select a coding agent to use: Claude Code, OpenCode, or Codex.
- Scan your codebase for LLM clients such as OpenAI, Anthropic, LangChain, etc.
- For gateway: redirect base URLs to the proxy, add routing and task ID headers.
- For tracing: install the Inference Tracing SDK, initialize it at the app entrypoint, and add spans around agents, tools, and provider calls.
- Review the generated changes before applying them.
4
Run your app
Run your application how you normally would to produce inference requests. Requests from your application are now routed through the gateway and will appear in the dashboard.
5
Verify it worked
Open the dashboard to see request details, traces, and analytics. You can also verify from the CLI:
Supported AI coding agents
Supported providers
Built-in: OpenAI, Anthropic OpenAI-compatible viax-inference-provider-url: Amazon Bedrock, Google Gemini, Vertex AI, Together AI, Groq, Fireworks AI, Mistral AI, Cerebras, Perplexity, DeepSeek, OpenRouter, Azure OpenAI, and any OpenAI-compatible endpoint.
Native provider APIs: Vertex AI native Gemini and Anthropic-on-Vertex are supported through the manual gateway headers documented in the Vertex AI guide.