[UNTESTED] [Schapat/cli-to-api-proxy] 3 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,133 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:8082/v1/chat/completions
Source: https://github.com/Schapat/cli-to-api-proxy
# CLI-to-API Proxy
**OpenAI-compatible REST API for Claude CLI and Kiro CLI with MCP tool support.**
Use Claude or Kiro CLI through any OpenAI-compatible application (n8n, Continue.dev, Open WebUI, custom apps) while maintaining access to MCP tools.
## Features
- 🔄 **OpenAI-compatible API** - Works with any app that supports OpenAI's chat completions API
- 🤖 **Dual Provider** - Use Claude CLI or Kiro CLI interchangeably
- 🔧 **MCP Tool Support** - Connect to any MCP server (n8n, GitHub, filesystem, databases, etc.)
- 🐳 **Docker Ready** - Easy deployment with Docker Compose
- ⚡ **Streaming** - Real-time streaming responses
- 🔐 **Authentication** - API key protection
## Quick Start
### 1. Install Dependencies
```bash
git clone https://github.com/Schapat/cli-to-api-proxy.git
cd cli-to-api-proxy
npm install
```
### 2. Configure
```bash
# Copy example config
cp config.example.json config.json
# Edit config.json with your settings
```
### 3. Run
```bash
# Development
npm run dev
# Production
npm run build && npm start
```
### 4. Test
```bash
curl http://localhost:8082/v1/chat/completions \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "claude/sonnet",
"messages": [{"role": "user", "content": "Hello!"}]
}'
```
## Configuration
### Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| `PROXY_PORT` | Server port | `8082` |
| `PROXY_HOST` | Server host | `0.0.0.0` |
| `PROXY_API_KEY` | API key for authentication | `sk-cli-proxy-key` |
| `REQUIRE_AUTH` | Enable authentication | `true` |
| `DEFAULT_PROVIDER` | Default CLI provider | `claude` |
| `CLAUDE_CLI_PATH` | Path to Claude CLI | `claude` |
| `KIRO_CLI_PATH` | Path to Kiro CLI | `kiro-cli` |
| `CONFIG_FILE` | Path to config file | `config.json` |
### Config File (config.json)
```json
{
"proxy": {
"port": 8082,
"apiKey": "your-secret-key"
},
"providers": {
"defau