# CLI2API

> Self-hosted OpenAI-compatible API that turns your own Qoder, WorkBuddy, and Trae account logins into a local API endpoint with multi-account routing and a web console.

- **Category:** API Gateway
- **Licence:** MIT
- **Latest version:** v0.7.19
- **Open source:** oss
- **Languages:** Typescript, Go
- **Platforms:** Docker
- **Tags:** SQLite, OAuth, Sse, Api Gateway, Node.js, Docker, Go, React, Golang, Self Hosted, Api proxy, Openai compatible, Chat Completions, Qoder, Workbuddy, Trae, Anthropic Messages

## Description

CLI2API is a self-hosted gateway that lets you use your own Qoder, WorkBuddy, and Trae accounts through a unified OpenAI-compatible API. It runs via Docker Compose and provides a web console for managing accounts, models, and client keys. The Go gateway routes requests across multiple accounts with session affinity, concurrency limits, and failover. Each Qoder account gets an isolated Node worker while other providers use in-process Go adapters. All credentials are stored in SQLite.

## Links

- [Homepage](https://github.com/caigee-cmd/cli2api)
- [Docker](ghcr.io/caigee-cmd/cli2api)
- [GitHub Repository](https://github.com/caigee-cmd/cli2api)
- [Documentation](https://github.com/caigee-cmd/cli2api/tree/main/deploy/README.md)
- [Telegram Community](https://t.me/+jCjL8ou_g7Q2MzI1)
- [Issues](https://github.com/caigee-cmd/cli2api/issues)

---
Source: https://selfhost.directory/project/cli2api