# 快速开始

> clone、配置、启动、验证的最短路径。

---

LLMS 索引： [llms.txt](/claude-api-proxy-docs/llms.txt)

---

## Docker 路径

```bash
git clone https://github.com/1596941391qq/claude-api-proxy.git
cd claude-api-proxy
cp config.example.json config.json
# 只在本地编辑 config.json，填入自己的凭据与密钥
docker compose up -d --build
docker compose ps
```

前置条件是 Docker Compose（或本地开发用 Bun）、你有权使用的 Claude Code OAuth 凭据和稳定出口。不要把示例占位符当生产默认值。

## 最小验证

```bash
curl http://127.0.0.1:3456/health
curl http://127.0.0.1:3456/v1/models \
  -H 'Authorization: Bearer <your-api-key>'
```

`/health` 只证明本地 readiness，不应通过真实模型请求做定时 canary。真实推理验证应人工、低频、可归因。

## 本地开发

```bash
bun install
bun test
bun run start
```

确切命令以 `package.json` 为准。Bun 全量测试若遇运行时自身崩溃，应逐文件运行并记录，不能把“测试框架崩了”写成“测试通过”。
