proxy

NameLast commit messageLast commit date
.githubUpdate docker-image.yml9 months ago
assetsdocs: add AICodeMirror sponsorship details to README files9 months ago
authsrebuild branch1 year ago
cmdchore: cherry-pick 文档更新和删除测试文件9 months ago
docsdocs: remove Amp CLI integration guides and update references11 months ago
examplesfeat(logging): make error-logs-max-files configurable9 months ago
internalMerge branch 'main' into plus9 months ago
sdkMerge branch 'main' into plus9 months ago
testfix(test): rename test function to reflect behavior change for builtin tools9 months ago
.dockerignorechore: add codex, agents, and opencode dirs to ignore files10 months ago
.env.exampleAdd Object Storage1 year ago
.gitignorechore: remove `.air.toml` configuration file and update `.gitignore`9 months ago
.goreleaser.yml**chore(build): rename artifacts and adjust workflows for 'plus' variant**11 months ago
config.example.yamlMerge branch 'main' into plus9 months ago
docker-build.ps1rebuild branch1 year ago
docker-build.shbuild(docker): move stats export execution after image build10 months ago
docker-compose.ymlMerge remote-tracking branch 'origin/main' into pr-10410 months ago
Dockerfile**docs: update README for CLIProxyAPI Plus and rename artifacts**11 months ago
go.modfeat: add .air.toml configuration file and update .gitignore for build artifacts9 months ago
go.sumMerge branch 'main' into plus9 months ago
LICENSEUpdate LICENSE to reflect extended copyright ownership1 year ago
README.mdchore(docs): add links to mainline repository in README files9 months ago
README_CN.mdchore(docs): add links to mainline repository in README files9 months ago
README.md

CLIProxyAPI Plus

English | Chinese

This is the Plus version of CLIProxyAPI, adding support for third-party providers on top of the mainline project.

All third-party provider support is maintained by community contributors; CLIProxyAPI does not provide technical support. Please contact the corresponding community maintainer if you need assistance.

The Plus release stays in lockstep with the mainline features.

Differences from the Mainline

  • Added GitHub Copilot support (OAuth login), provided by em4go
  • Added Kiro (AWS CodeWhisperer) support (OAuth login), provided by fuko2935, Ravens2121

New Features (Plus Enhanced)

  • OAuth Web Authentication: Browser-based OAuth login for Kiro with beautiful web UI
  • Rate Limiter: Built-in request rate limiting to prevent API abuse
  • Background Token Refresh: Automatic token refresh 10 minutes before expiration
  • Metrics & Monitoring: Request metrics collection for monitoring and debugging
  • Device Fingerprint: Device fingerprint generation for enhanced security
  • Cooldown Management: Smart cooldown mechanism for API rate limits
  • Usage Checker: Real-time usage monitoring and quota management
  • Model Converter: Unified model name conversion across providers
  • UTF-8 Stream Processing: Improved streaming response handling

Kiro Authentication

Web-based OAuth Login

Access the Kiro OAuth web interface at:

http://your-server:8080/v0/oauth/kiro

This provides a browser-based OAuth flow for Kiro (AWS CodeWhisperer) authentication with:

  • AWS Builder ID login
  • AWS Identity Center (IDC) login
  • Token import from Kiro IDE

Quick Deployment with Docker

One-Command Deployment

# Create deployment directory
mkdir -p ~/cli-proxy && cd ~/cli-proxy

# Create docker-compose.yml
cat > docker-compose.yml << 'EOF'
services:
  cli-proxy-api:
    image: eceasy/cli-proxy-api-plus:latest
    container_name: cli-proxy-api-plus
    ports:
      - "8317:8317"
    volumes:
      - ./config.yaml:/CLIProxyAPI/config.yaml
      - ./auths:/root/.cli-proxy-api
      - ./logs:/CLIProxyAPI/logs
    restart: unless-stopped
EOF

# Download example config
curl -o config.yaml https://raw.githubusercontent.com/router-for-me/CLIProxyAPIPlus/main/config.example.yaml

# Pull and start
docker compose pull && docker compose up -d

Configuration

Edit config.yaml before starting:

# Basic configuration example
server:
  port: 8317

# Add your provider configurations here

Update to Latest Version

cd ~/cli-proxy
docker compose pull && docker compose up -d

Contributing

This project only accepts pull requests that relate to third-party provider support. Any pull requests unrelated to third-party provider support will be rejected.

If you need to submit any non-third-party provider changes, please open them against the mainline repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.