Claude Code can talk to NagaAI using the Anthropic Messages API. This lets you run Claude Code with your NagaAI API key and choose any NagaAI model that supports function calling (tools).Documentation Index
Fetch the complete documentation index at: https://docs.naga.ac/llms.txt
Use this file to discover all available pages before exploring further.
Quick start
Install Claude Code
Official docs: Claude Code Overview
- Native install (macOS/Linux/WSL)
- Windows PowerShell
- npm
Point Claude Code to NagaAI
Claude Code reads Anthropic-compatible environment variables. Configure:
- Base URL:
https://api.naga.ac - Auth token: your NagaAI API key
- Ensure the default Anthropic API key is explicitly empty (prevents conflicts)
- (Optional) Override Claude Code’s default model aliases (Haiku/Sonnet/Opus) to specific NagaAI models
- Shell (macOS/Linux/WSL)
- Windows PowerShell
- Project settings file
Need an API key? Create one in the NagaAI Dashboard, or start with Quickstart.
You can replace the example model IDs above with any model that supports function calling. See models with tools support.
Start Claude Code
In your project directory:Your requests will be routed through NagaAI’s Anthropic-compatible endpoint (Messages API at
/v1/messages).Try it
- “Summarize this project: key folders, build system, and entry points.”
- “Find where X is implemented and list the relevant files.”
- “Run tests and fix the first failing test.”
- “Refactor: extract helper Y and update all call sites.”