# Claude Code

### Using Claude Code with LiteLLM

As per: [https://docs.litellm.ai/docs/tutorials/claude\_responses\_api](https://docs.litellm.ai/docs/tutorials/claude_responses_api)

export env vars corresponding to your litellm proxy instance:

```bash
export ANTHROPIC_BASE_URL="http://0.0.0.0:4000"
export ANTHROPIC_AUTH_TOKEN="$LITELLM_MASTER_KEY"
```

### Using Claude Code with LM Studio

[Reference ](https://lmstudio.ai/blog/claudecode)

Start the server:

```bash
lms server start --port 1234
```

Point Claude Code at local instance:

```bash
export ANTHROPIC_BASE_URL=http://localhost:1234
export ANTHROPIC_AUTH_TOKEN=lmstudio
```

### Github MCP

Public project here: [https://github.com/github/github-mcp-server](https://github.com/github/github-mcp-server)

Generate a PAT

Enable the tool in Claude Code

```bash
 claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer <token>"
```