> For the complete documentation index, see [llms.txt](https://docs.fritesai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fritesai.com/getting-started/configure-claude-code.md).

# Configure Claude Code

To route Claude Code through the frites gateway, point its model endpoint at the local gateway URL. frites impersonates the Anthropic endpoint, so Claude Code talks to frites exactly as it would to `api.anthropic.com`.

## Settings

Add the following `env` block to `~/.claude/settings.json`:

```json
{ "env": { "ANTHROPIC_BASE_URL": "http://127.0.0.1:6767", "ANTHROPIC_AUTH_TOKEN": "frites" } }
```

* **`ANTHROPIC_BASE_URL`**: the gateway URL. Use `http://127.0.0.1:6767` for the default port. If you installed the service on a different port (`frites install --port 7000`), use that port instead.
* **`ANTHROPIC_AUTH_TOKEN`**: set to `frites`. The gateway binds to `127.0.0.1` only and does not validate this token against an upstream account; child agents authenticate using the accounts you are already logged into (see [auth and billing](/product/auth-and-billing.md)).

## Open a new session

Claude Code reads `~/.claude/settings.json` when a session starts, so **open a new session** after editing the file. Existing sessions keep their old endpoint until restarted. From then on, every prompt in that session flows through the frites council.

## Next steps

* [First run](/getting-started/first-run.md): confirm the gateway is reachable and watch the council work.
* [Configure Codex](/getting-started/configure-codex.md): if you also use Codex.
* [Service management](/getting-started/service-management.md): managing the always-on gateway.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fritesai.com/getting-started/configure-claude-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
