| @@ -497,30 +497,36 @@ docker run --rm -p 8317:8317 -v /path/to/your/config.yaml:/CLIProxyAPI/config.ya · 496 unmodified lines |
| 497 | | 497 | |
| 498 | ## Run with Docker Compose | 498 | ## Run with Docker Compose |
| 499 | | 499 | |
| 500 | 1. Create a `config.yaml` from `config.example.yaml` and customize it. | 500 | 1. Clone the repository: |
| | 501 | ```bash |
| | 502 | git clone https://github.com/luispater/CLIProxyAPI.git |
| | 503 | cd CLIProxyAPI |
| | 504 | ``` |
| | 505 | |
| | 506 | 2. Create a `config.yaml` from `config.example.yaml` and customize it. |
| 501 | | 507 | |
| 502 | 2. Build and start the services using the build scripts: | 508 | 3. Build and start the services using the build scripts: |
| 503 | - For Windows (PowerShell): | 509 | - For Windows (PowerShell): |
| 504 | ```powershell | 510 | ```powershell |
| 505 | ./docker-build.ps1 | 511 | .\docker-build.ps1 |
| 506 | ``` | 512 | ``` |
| 507 | - For Linux/macOS: | 513 | - For Linux/macOS: |
| 508 | ```bash | 514 | ```bash |
| 509 | bash docker-build.sh | 515 | bash docker-build.sh |
| 510 | ``` | 516 | ``` |
| 511 | | 517 | |
| 512 | 3. To authenticate with providers, run the login command inside the container: | 518 | 4. To authenticate with providers, run the login command inside the container: |
| 513 | - **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login` | 519 | - **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login` |
| 514 | - **OpenAI (Codex)**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --codex-login` | 520 | - **OpenAI (Codex)**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --codex-login` |
| 515 | - **Claude**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --claude-login` | 521 | - **Claude**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --claude-login` |
| 516 | - **Qwen**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --qwen-login` | 522 | - **Qwen**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --qwen-login` |
| 517 | | 523 | |
| 518 | 4. To view the server logs: | 524 | 5. To view the server logs: |
| 519 | ```bash | 525 | ```bash |
| 520 | docker compose logs -f | 526 | docker compose logs -f |
| 521 | ``` | 527 | ``` |
| 522 | | 528 | |
| 523 | 5. To stop the application: | 529 | 6. To stop the application: |
| 524 | ```bash | 530 | ```bash |
| 525 | docker compose down | 531 | docker compose down |
| 526 | ``` | 532 | ``` |