Skip to content

Commit 5a745a5

Browse files
committed
docs: Add instructions for Claude Code integration
1 parent cf650c7 commit 5a745a5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ npx copilot-api@latest auth --verbose
153153

154154
This proxy can be used to power [Claude Code](https://docs.anthropic.com/en/claude-code), an experimental conversational AI assistant for developers from Anthropic.
155155

156+
There are two ways to configure Claude Code to use this proxy:
157+
158+
### Interactive Setup with `--claude-code` flag
159+
156160
To get started, run the `start` command with the `--claude-code` flag:
157161

158162
```sh
@@ -163,8 +167,27 @@ You will be prompted to select a primary model and a "small, fast" model for bac
163167

164168
Paste and run this command in a new terminal to launch Claude Code.
165169

170+
### Manual Configuration with `settings.json`
171+
172+
Alternatively, you can configure Claude Code by creating a `.claude/settings.json` file in your project's root directory. This file should contain the environment variables needed by Claude Code. This way you don't need to run the interactive setup every time.
173+
174+
Here is an example `.claude/settings.json` file:
175+
176+
```json
177+
{
178+
"env": {
179+
"ANTHROPIC_BASE_URL": "http://localhost:4141",
180+
"ANTHROPIC_AUTH_TOKEN": "dummy",
181+
"ANTHROPIC_MODEL": "gpt-4.1",
182+
"ANTHROPIC_SMALL_FAST_MODEL": "gpt-4.1"
183+
}
184+
}
185+
```
186+
166187
You can find more options here: [Claude Code settings](https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables)
167188

189+
You can also read more about IDE integration here: [Add Claude Code to your IDE](https://docs.anthropic.com/en/docs/claude-code/ide-integrations)
190+
168191
## Running from Source
169192

170193
The project can be run from source in several ways:

0 commit comments

Comments
 (0)