OrcAI Documentation
Unified AI platform with integrated CLI tools, bot framework, and API gateway.
Claude Code
Anthropic's agentic coding CLI. Edit files, run commands, and manage git workflows from your terminal.
AnthropicCodex CLI
OpenAI's terminal-based coding agent. Read, change, and run code with sandboxed execution.
OpenAIGemini CLI
Google's open-source AI agent with 1M token context window. Free tier with generous limits.
GoogleOpenClaw
Multi-channel AI bot framework. Connect to Telegram, Discord, Slack, WhatsApp and 10+ platforms.
Bot FrameworkWhy OrcAI?
OrcAI provides a unified gateway to access 50+ AI models from Anthropic, OpenAI, Google, and others through a single API key. Our platform integrates the best AI-powered CLI tools so developers can code faster, smarter, and more efficiently.
- One API, all models — Claude, GPT, Gemini, and more through one endpoint
- Integrated CLI tools — Claude Code, Codex, and Gemini CLI with one-click install
- 99.9% uptime SLA — Global edge network with automatic failover
- Cost optimization — Smart routing reduces API costs by up to 40%
- OpenClaw bot framework — Deploy AI assistants across 13+ messaging platforms
Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Claude Code │ │ Codex CLI │ │ Gemini CLI │
│ (Local) │ │ (Local) │ │ (Local) │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
└──────────────────┼──────────────────┘
│
┌────────▼────────┐
│ OrcAI Gateway │
│ api.orcai.cc │
└────────┬────────┘
│
┌───────────────┼───────────────┐
│ │ │
┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐
│ Anthropic │ │ OpenAI │ │ Google │
│ Claude API │ │ GPT API │ │ Gemini API │
└─────────────┘ └─────────────┘ └─────────────┘
Quick Start
Get up and running with OrcAI in under 5 minutes.
Step 1: Create an Account
Sign up at api.orcai.cc/portal with your email. You'll receive a verification code to complete registration.
Step 2: Get Your API Key
Navigate to Dashboard → API Keys and create a new key. Copy it — you'll need it for all CLI tools.
.env files instead.
Step 3: Configure Your Environment
# Set your OrcAI API key export ORCAI_API_KEY="your-api-key-here" # OrcAI gateway is compatible with OpenAI SDK export OPENAI_API_KEY="$ORCAI_API_KEY" export OPENAI_BASE_URL="https://api.orcai.cc/v1" # For Anthropic SDK compatibility export ANTHROPIC_API_KEY="$ORCAI_API_KEY" export ANTHROPIC_BASE_URL="https://api.orcai.cc"
Step 4: Install a CLI Tool
Choose one or install all three:
One-Click Install (All CLI Tools)
Or install individually — see the One-Click Install page for details.
Step 5: Start Coding
# Use Claude Code $ claude "Create a REST API with Express" # Use Codex CLI $ codex "Build a React dashboard component" # Use Gemini CLI $ gemini "Analyze this codebase and suggest improvements"
One-Click Install
Install Claude Code, Codex CLI, and Gemini CLI with a single command.
Install All CLI Tools
This script detects your OS and installs all three CLI tools with the correct configuration for OrcAI gateway.
Individual Installation
Claude Code (Anthropic)
# macOS / Linux / WSL curl -fsSL https://claude.ai/install.sh | bash # Verify installation claude --version
# Windows PowerShell irm https://claude.ai/install.ps1 | iex # Or via WinGet winget install Anthropic.ClaudeCode
npm install -g @anthropic-ai/claude-code
Codex CLI (OpenAI)
npm install -g @openai/codex
brew install --cask codex
# Download from GitHub Releases # https://github.com/openai/codex/releases/latest
Gemini CLI (Google)
# Run without installing
npx @google/gemini-cli
npm install -g @google/gemini-cli
brew install gemini-cli
System Requirements
| Tool | Node.js | OS | Notes |
|---|---|---|---|
| Claude Code | 18+ | macOS, Linux, Windows (WSL) | Native Windows via WinGet |
| Codex CLI | 22+ | macOS, Linux, Windows | Built in Rust, minimal deps |
| Gemini CLI | 18+ | macOS, Linux, Windows | Open source, Apache 2.0 |
Claude Code
Anthropic's agentic coding tool that lives in your terminal.
Overview
Claude Code is an agentic coding tool by Anthropic that understands your entire codebase, executes routine tasks, explains complex code, and handles git workflows — all through natural language commands in your terminal.
Installation
Recommended (macOS / Linux / WSL)
Configuration with OrcAI
# Set OrcAI as your API provider export ANTHROPIC_API_KEY="your-orcai-api-key" export ANTHROPIC_BASE_URL="https://api.orcai.cc" # Launch Claude Code claude
Key Features
- Multi-file editing — Search and modify files across your entire codebase
- Git integration — Read issues, write code, run tests, submit PRs
- Agentic search — No manual context selection, Claude finds what it needs
- Plugin system — Custom commands and agents via slash commands
- Agent SDK — Build programmatic agents with
@anthropic-ai/claude-agent-sdk - MCP support — Connect to external tools via Model Context Protocol
Common Commands
# Start interactive session $ claude # Run a single command $ claude "explain this function" # Fix a specific issue $ claude "fix the login bug in auth.js" # Create a commit $ claude "/commit" # Run diagnostics $ claude doctor # Update to latest version $ claude update
Supported Models via OrcAI
| Model | ID | Best For |
|---|---|---|
| Claude Opus 4 | claude-opus-4-6 | Complex reasoning, large refactors |
| Claude Sonnet 4 | claude-sonnet-4-6 | Balanced speed + quality |
| Claude Haiku 3.5 | claude-haiku-4-5-20251001 | Fast tasks, simple edits |
Codex CLI
OpenAI's terminal-based coding agent built in Rust.
Overview
Codex CLI is OpenAI's local terminal-based coding agent that can read, change, and run code on your machine. Built primarily in Rust for maximum speed, it features sandboxed execution for security and integrates with VS Code, Cursor, and Windsurf editors.
Installation
via npm
npm install -g @openai/codex
brew install --cask codex
Configuration with OrcAI
# Use OrcAI as the OpenAI-compatible backend export OPENAI_API_KEY="your-orcai-api-key" export OPENAI_BASE_URL="https://api.orcai.cc/v1" # Launch Codex codex
Key Features
- Built in Rust — 96% Rust codebase for maximum performance
- Sandboxed execution — Landlock/seccomp on Linux for secure code execution
- Editor integration — VS Code, Cursor, and Windsurf support
- GitHub Actions — CI/CD integration with
openai/codex-action@v1 - Desktop app — Launch with
codex app - Web search — Built-in web search tool for context gathering
- Slash commands —
/review,/fork, custom prompts
Usage Examples
# Interactive mode $ codex # Direct task $ codex "Build a React dashboard component" # Review code $ codex "/review" # Desktop app mode $ codex app
Gemini CLI
Google's open-source AI agent with 1M token context window.
Overview
Gemini CLI is Google's open-source AI agent powered by Gemini models with a massive 1M token context window. It includes a free tier with generous limits (60 requests/min, 1,000 requests/day) and supports Google Search grounding, MCP servers, and conversation checkpointing.
Installation
Run without installing (npx)
# No install needed — runs via npx
npx @google/gemini-cli
npm install -g @google/gemini-cli
brew install gemini-cli
Configuration with OrcAI
# Use OrcAI gateway for Gemini API export GEMINI_API_KEY="your-orcai-api-key" # Launch Gemini CLI gemini
Key Features
- 1M token context — Largest context window of any CLI tool
- Free tier — 60 requests/min, 1,000 requests/day at no cost
- Open source — Apache 2.0 license, fully transparent
- Google Search grounding — Real-time web search integration
- MCP support — Custom tool integrations via Model Context Protocol
- Conversation checkpointing — Save and resume sessions
- Custom context files —
GEMINI.mdfor project-specific instructions - Non-interactive mode — Scriptable for automation pipelines
Free Tier Limits
| Limit | Value |
|---|---|
| Requests per minute | 60 |
| Requests per day | 1,000 |
| Context window | 1,000,000 tokens |
| Cost | Free (Google login) |
OpenClaw
Multi-channel AI bot framework for Telegram, Discord, Slack, and 10+ platforms.
Overview
OpenClaw is a personal AI assistant framework that runs on your own devices and connects to 13+ messaging platforms. It supports voice, browser control, device integration, and a powerful skill system for extending functionality.
Installation
Install via npm
# Install globally npm install -g openclaw@latest # Run onboarding openclaw onboard --install-daemon # Or install from source git clone https://github.com/openclaw/openclaw.git cd openclaw pnpm install && pnpm ui:build && pnpm build pnpm openclaw onboard --install-daemon
Telegram Bot Setup
- Create a bot via @BotFather on Telegram (
/newbot) - Configure the bot token in OpenClaw:
{
channels: {
telegram: {
enabled: true,
botToken: "YOUR_BOT_TOKEN",
dmPolicy: "pairing",
groups: { "*": { requireMention: true } }
}
}
}
# Start gateway and approve pairing
openclaw gateway
openclaw pairing list telegram
openclaw pairing approve telegram <CODE>
Supported Platforms
| Platform | Status | Features |
|---|---|---|
| Telegram | Full support | DM, groups, inline, voice |
| Full support | DM, groups, media | |
| Discord | Full support | DM, channels, threads |
| Slack | Full support | DM, channels, threads |
| Signal | Supported | DM, groups |
| iMessage | macOS only | DM |
| Google Chat | Supported | DM, spaces |
| Microsoft Teams | Supported | DM, channels |
| Matrix | Supported | DM, rooms |
| WebChat | Built-in | Browser widget |
Key Features
- Multi-channel inbox — One AI, 13+ messaging platforms
- Voice Wake + Talk — ElevenLabs voice integration
- Browser control — Chrome/Chromium automation
- Skill system — Extensible via ClawHub skills
- Device nodes — Camera, screen recording, location (iOS/Android/macOS)
- Local-first — Runs on your own devices, no cloud dependency
- Pairing security — Secure authentication for DMs and groups
API Overview
OpenAI-compatible REST API for accessing 50+ AI models.
Base URL
https://api.orcai.cc/v1
Quick Example
curl https://api.orcai.cc/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-4-6", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 1024 }'
from openai import OpenAI client = OpenAI( api_key="your-orcai-api-key", base_url="https://api.orcai.cc/v1" ) response = client.chat.completions.create( model="claude-sonnet-4-6", messages=[{"role": "user", "content": "Hello!"}], max_tokens=1024 ) print(response.choices[0].message.content)
import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'your-orcai-api-key', baseURL: 'https://api.orcai.cc/v1' }); const response = await client.chat.completions.create({ model: 'claude-sonnet-4-6', messages: [{ role: 'user', content: 'Hello!' }], max_tokens: 1024 }); console.log(response.choices[0].message.content);
Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/chat/completions | Chat completion (streaming supported) |
GET | /v1/models | List available models |
POST | /v1/embeddings | Generate text embeddings |
POST | /v1/images/generations | Generate images (DALL-E, Midjourney) |
Authentication
Secure your API requests with bearer token authentication.
API Key
All API requests require a valid API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Getting Your API Key
- Log in to OrcAI Portal
- Navigate to API Keys section
- Click Create New Key
- Copy the key — it won't be shown again
- Never expose API keys in client-side code
- Use environment variables:
export ORCAI_API_KEY="sk-..." - Rotate keys regularly from the dashboard
- Use separate keys for development and production
Rate Limits
| Plan | Requests/min | Requests/day | Models |
|---|---|---|---|
| Starter (Free) | 10 | 1,000 | 3 |
| Pro ($49/mo) | 100 | 100,000 | 50+ |
| Enterprise | Custom | Unlimited | 50+ & Custom |
Models
50+ AI models from leading providers, accessible through one API.
Anthropic Models
| Model | ID | Context | Best For |
|---|---|---|---|
| Claude Opus 4 | claude-opus-4-6 | 200K | Complex reasoning, coding |
| Claude Sonnet 4 | claude-sonnet-4-6 | 200K | Balanced performance |
| Claude Haiku 3.5 | claude-haiku-4-5-20251001 | 200K | Fast, lightweight tasks |
OpenAI Models
| Model | ID | Context | Best For |
|---|---|---|---|
| GPT-4o | gpt-4o | 128K | Multimodal, general purpose |
| GPT-4o Mini | gpt-4o-mini | 128K | Cost-effective tasks |
| o1 | o1 | 200K | Advanced reasoning |
| o3 | o3 | 200K | Deep reasoning |
Google Models
| Model | ID | Context | Best For |
|---|---|---|---|
| Gemini 2.5 Pro | gemini-2.5-pro | 1M | Large context tasks |
| Gemini 2.5 Flash | gemini-2.5-flash | 1M | Fast, cost-effective |
"model": "auto" to enable smart routing.