openclaw
Skills for the OpenClaw personal AI assistant, covering browser automation, routing requests to coding agents, presenting canvas widgets, running apps on temporary machines, and sharing diffs.
An AI gateway for models, applications, and agents 简体中文 | 繁體中文 | English | Français | 日本語 --> --> --> Screenshots • Capabilities • Quick start • Deployment • Development • Documentation.
$ git clone https://github.com/QuantumNous/new-api
Try locally with Docker
This starts a single instance with SQLite and binds it to localhost:
mkdir -p data
docker run --name new-api -d --restart unless-stopped \
-p 127.0.0.1:3000:3000 \
-e TZ=Asia/Shanghai \
-v "$(pwd)/data:/data" \
calciumion/new-api:latestOpen http://localhost:3000 and complete the setup wizard to create the administrator account. The data directory persists the SQLite database across container replacements.
Make your first request
Add a channel with your upstream API key, available models, and group assignment; run a channel test.
Configure model pricing and ensure the user has quota or a valid subscription.
Create an API key in the console with access to the same group and models.
Set your client's base URL to http://localhost:3000/v1 for OpenAI-compatible clients and use the New API-issued key.
Set NEW_API_KEY in your shell to that key. List the models accessible to it:
curl --fail-with-body http://localhost:3000/v1/models \
-H "Authorization: Bearer ${NEW_API_KEY}"Then call Responses, replacing your-enabled-model with an enabled model that supports this interface:
curl --fail-with-body http://localhost:3000/v1/responses \
-H "Authorization: Bearer ${NEW_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"model":"your-enabled-model","input":"Hello!"}'


An AI gateway for models, applications, and agents
简体中文 | 繁體中文 | English | Français | 日本語
Screenshots • Capabilities • Quick start • Deployment • Development • Documentation
New API is a self-hosted AI gateway for applications, agents, and teams. Connect upstream model services, expose a consistent API to your clients, and manage routing, access, usage, and costs in one place.
Use it to share authorized model access across a team, switch providers without configuring every client again, or operate a private multi-model service with a web console. Upstreams include OpenAI, Anthropic, Google Gemini, Azure OpenAI, AWS Bedrock, Vertex AI, DeepSeek, Qwen, and other compatible services.
Important
- This project is intended solely for lawful and authorized AI API gateway, organization-level authentication, multi-model management, usage analytics, cost accounting, and private deployment scenarios.
- Users must lawfully obtain upstream API keys, accounts, model services, and interface permissions, and must comply with upstream terms of service and applicable laws and regulations.
- Users should ensure their use complies with upstream terms of service and applicable laws and regulations.
- When providing generative AI services to the public, users should comply with applicable regulatory requirements and fulfill all filing, licensing, content safety, real-name verification, log retention, tax, and upstream authorization obligations required by their jurisdiction.
Warning When operating this project as a public generative AI service or API resale service, users should first complete all required filing, licensing, content safety, real-name verification, log retention, tax, payment, and upstream authorization obligations.
Accounts, channels, plugin installation states, usage, prices, and costs shown below are simulated data. The marketplace displays the official plugin catalog. Click an image to view it at full size.
| Usage dashboard | Plugin marketplace |
|---|---|
| Model square | Usage logs |
![]() | ![]() |
No particular order
Thanks to JetBrains for providing free open-source development license for this project
| Area | What you can do |
|---|---|
| Model access | Use OpenAI Chat Completions, Responses, Anthropic Messages, and Gemini APIs; stream responses and use tools, reasoning, and multimodal inputs where supported |
| Routing | Configure model mappings, channel priorities and weights, retries, channel affinity, and multiple upstream keys |
| Usage and costs | Manage quotas, subscriptions, usage logs, cache accounting, and expression-based pricing for different usage tiers |
| Access control | Manage users, groups, fine-grained permissions, and API key restrictions; use OAuth/OIDC, passkeys, two-factor authentication, and login session management |
| Asynchronous tasks | Extend image, video, and other task APIs with JavaScript plugins, including task status and output retrieval |
| Web console | Configure channels and models, inspect usage and audit logs, and try models in the playground; available in English, Simplified Chinese, Traditional Chinese, French, Japanese, Russian, and Vietnamese |
| Interface | Common endpoints |
|---|---|
| OpenAI Chat / Responses | POST /v1/chat/completions, POST /v1/responses |
| Anthropic Messages | POST /v1/messages |
| Gemini | POST /v1beta/models/{model}:generateContent, POST /v1beta/models/{model}:streamGenerateContent |
| Realtime / Responses WebSocket | GET /v1/realtime, GET /v1/responses (WebSocket upgrade) |
| Images / audio | /v1/images/generations, /v1/images/edits, /v1/audio/speech, /v1/audio/transcriptions, /v1/audio/translations |
| Embeddings / rerank | POST /v1/embeddings, POST /v1/rerank |
| Task plugins | POST /v1/tasks/{pluginKey}, GET /v1/tasks/{taskId}, plus routes declared by each plugin |
RelayKit provides request, response, and streaming conversion between the four text protocols. Available features depend on the channel, upstream model, and conversion path; protocol-specific tools and fields may not map exactly. WebSocket support also requires a compatible upstream and channel configuration.
This README describes the current source tree. Check the release notes for the version you deploy.
This starts a single instance with SQLite and binds it to localhost:
mkdir -p data
docker run --name new-api -d --restart unless-stopped \
-p 127.0.0.1:3000:3000 \
-e TZ=Asia/Shanghai \
-v "$(pwd)/data:/data" \
calciumion/new-api:latest
Open http://localhost:3000 and complete the setup wizard to create the administrator account. The data directory persists the SQLite database across container replacements.
http://localhost:3000/v1 for OpenAI-compatible clients and use the New API-issued key.Set NEW_API_KEY in your shell to that key. List the models accessible to it:
curl --fail-with-body http://localhost:3000/v1/models \
-H "Authorization: Bearer ${NEW_API_KEY}"
Then call Responses, replacing your-enabled-model with an enabled model that supports this interface:
curl --fail-with-body http://localhost:3000/v1/responses \
-H "Authorization: Bearer ${NEW_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"model":"your-enabled-model","input":"Hello!"}'
The repository's Compose configuration starts New API + PostgreSQL + Redis by default. It also contains examples for MySQL and a separate ClickHouse log database.
git clone https://github.com/QuantumNous/new-api.git
cd new-api
Before starting, edit docker-compose.yml: replace the database and Redis example passwords in both the services and connection strings, and set a persistent random SESSION_SECRET (generate one with openssl rand -hex 32). For an HTTPS console, configure SESSION_COOKIE_SECURE=true and SESSION_COOKIE_TRUSTED_URL with its exact public HTTPS origin.
docker compose up -d
docker compose logs -f new-api
| Component | Options |
|---|---|
| Main database | SQLite, MySQL ≥ 5.7.8, or PostgreSQL ≥ 9.6 |
| Separate log database | Configure with LOG_SQL_DSN; also supports ClickHouse |
| Cache | Optional Redis plus in-memory caching; use shared Redis when application nodes need shared rate limits |
| Container platforms | Linux amd64 / arm64 |
| Variable | Purpose |
|---|---|
SQL_DSN | Main database connection; unset uses SQLite |
LOG_SQL_DSN | Optional separate log database connection |
REDIS_CONN_STRING | Redis connection string |
SESSION_SECRET | Persistent authentication secret; all nodes must use the same value |
CRYPTO_SECRET | Defaults to SESSION_SECRET; nodes sharing Redis must use the same effective value |
SESSION_COOKIE_SECURE | Set to true for an HTTPS console; enables Secure refresh cookies and strict refresh/logout origin checks |
SESSION_COOKIE_TRUSTED_URL | Required in Secure mode: comma-separated exact HTTPS origins, without paths or wildcards; leave unset for local HTTP |
TRUSTED_PROXIES | Trusted reverse-proxy IPs/CIDRs, or none; explicitly configure for your network |
Skills for the OpenClaw personal AI assistant, covering browser automation, routing requests to coding agents, presenting canvas widgets, running apps on temporary machines, and sharing diffs.
Gives Claude Code users skills to drive Orca-managed worktrees, terminals and the embedded browser through the orca CLI, plus Jira and Linear ticket work and inline HTML chat visuals. Covers chart, table and mockup output.
Orchestrates teams of AI agents to run work like a company, with a Node.js server and React UI. Adds skills for delegating tasks, following up on results, reviewing team status, and managing Paperclip tasks from Hermes.
Organizes your AI agents for round-the-clock operation, with tools to hire, schedule and report on your agent team. Lets you oversee the agents without staying online yourself.
An AI gateway for models, applications, and agents 简体中文 | 繁體中文 | English | Français | 日本語 --> --> --> Screenshots • Capabilities • Quick start • Deployment • Development • Documentation. Free and open source.
Is this tool yours?
Claim it with GitHubSubmit a pluginPromote it