Home Dashboard

OrcAI Documentation

Unified AI gateway with integrated CLI tools. Install once, access all models.

OrcAI is a unified AI gateway that gives you access to 50+ models from Anthropic, OpenAI, and Google through a single API key. Use ccswitch to configure all your CLI tools in one command.

How It Works

  1. Install OrcAI CLI tools with one command
  2. Run ccswitch setup YOUR_API_KEY to configure everything
  3. Use claude, codex, or gemini directly in your terminal

Integrated Tools

Claude Code

Anthropic's agentic coding CLI. Edit files, run commands, manage git workflows.

Anthropic
🟢

Codex CLI

OpenAI's terminal coding agent. Read, modify, and run code in a sandbox.

OpenAI
🔵

Gemini CLI

Google's open-source AI agent. 1M token context, free tier available.

Google
🟠

OpenClaw

Multi-channel AI bot framework. Telegram, Discord, Slack, and 10+ platforms.

Bot Framework

Why OrcAI?

  • One API, all modelsClaude, GPT, Gemini through a single endpoint
  • One-click setupccswitch configures all CLI tools automatically
  • 99.9% uptimeGlobal edge network with automatic failover
  • Cost optimizationSmart routing reduces API costs by up to 40%
  • Bot frameworkDeploy AI bots on 13+ messaging platforms with OpenClaw

Quick Install

Two commands to get everything running.

Step 1: Install

Run this single command to install all OrcAI CLI tools (Claude Code, Codex CLI, Gemini CLI, ccswitch):

Install All CLI Tools

$ curl -fsSL https://api.orcai.cc/install.sh | bash

Step 2: Setup

Configure your API key with ccswitch. This sets up all tools at once:

Configure API Key

$ ccswitch setup YOUR_API_KEY
That's it! You can now use claude, codex, and gemini directly from your terminal. All tools are configured to use OrcAI gateway.

What Gets Installed

Component Description Command
ccswitch Configuration manager for all CLI tools ccswitch
Claude Code Anthropic's agentic coding CLI claude
Codex CLI OpenAI's terminal coding agent codex
Gemini CLI Google's open-source AI agent gemini

System Requirements

Requirement Minimum
Node.js18+
Operating SystemmacOS, Linux, Windows (WSL)
Shellbash, zsh, fish
Get your API key Sign up at api.orcai.cc/portal and create a key from the Dashboard.

ccswitch

The unified configuration tool for all OrcAI CLI tools.

ccswitch is a command-line tool that manages API keys and endpoint configuration for Claude Code, Codex CLI, and Gemini CLI. Instead of manually setting environment variables, use ccswitch to configure everything at once.

Commands

ccswitch setup

Configure your API key and set up all CLI tools to use OrcAI gateway:

bash
# Initial setup with your API key
$ ccswitch setup YOUR_API_KEY

# This automatically configures:
# - ANTHROPIC_API_KEY + ANTHROPIC_BASE_URL (for Claude Code)
# - OPENAI_API_KEY + OPENAI_BASE_URL (for Codex CLI)
# - GEMINI_API_KEY (for Gemini CLI)

ccswitch status

Check the current configuration status of all tools:

bash
$ ccswitch status

# Output:
Claude Code  ✓ configured (api.orcai.cc)
Codex CLI    ✓ configured (api.orcai.cc)
Gemini CLI   ✓ configured (api.orcai.cc)
API Key      sk-****...****

ccswitch use

Switch between CLI tools or launch a specific tool:

bash
# Launch Claude Code
$ ccswitch use claude

# Launch Codex CLI
$ ccswitch use codex

# Launch Gemini CLI
$ ccswitch use gemini

ccswitch help

Show help and available commands:

bash
$ ccswitch help

# Available commands:
#   setup <api-key>   Configure API key for all tools
#   status            Show current configuration
#   use <tool>        Launch a specific CLI tool
#   help              Show this help message

Command Summary

Command Description Example
setup <key> Configure API key for all tools ccswitch setup sk-xxx
status Show configuration status ccswitch status
use <tool> Launch a CLI tool ccswitch use claude
help Show help message ccswitch help

Claude Code

Anthropic's agentic coding tool that lives in your terminal.

Claude Code understands your entire codebase, executes routine tasks, explains complex code, and handles git workflows through natural language commands.

Launch

bash
# Via ccswitch
$ ccswitch use claude

# Or directly (after ccswitch setup)
$ claude

Key Features

  • Multi-file editingSearch and modify files across your entire codebase
  • Git integrationRead issues, write code, run tests, submit PRs
  • Agentic searchAutomatically finds relevant context without manual selection
  • MCP supportConnect external tools via Model Context Protocol
  • Slash commandsBuilt-in commands like /commit, /review, and custom plugins

Usage Examples

Terminal
# Interactive session
$ claude

# Direct task
$ claude "explain this function"

# Fix a bug
$ claude "fix the login bug in auth.js"

# Create a commit
$ claude "/commit"

# Update Claude Code
$ claude update

Supported Models

Model ID Best For
Claude Opus 4claude-opus-4-6Complex reasoning, large refactors
Claude Sonnet 4claude-sonnet-4-6Balanced speed and quality
Claude Haiku 3.5claude-haiku-4-5-20251001Fast tasks, simple edits

Codex CLI

OpenAI's terminal-based coding agent built in Rust.

Codex CLI reads, changes, and runs code on your machine with sandboxed execution for security. Built primarily in Rust for maximum performance.

Launch

bash
# Via ccswitch
$ ccswitch use codex

# Or directly (after ccswitch setup)
$ codex

Key Features

  • Built in Rust96% Rust codebase for maximum performance
  • Sandboxed executionSecure code execution with Landlock/seccomp on Linux
  • Editor integrationWorks with VS Code, Cursor, and Windsurf
  • Desktop appLaunch with codex app for a graphical interface
  • Web searchBuilt-in web search for gathering context

Usage Examples

Terminal
# 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.

Gemini CLI is powered by Gemini models with a massive 1M token context window. It includes a free tier with generous limits and supports Google Search grounding and MCP servers.

Launch

bash
# Via ccswitch
$ ccswitch use gemini

# Or directly (after ccswitch setup)
$ gemini

Key Features

  • 1M token contextLargest context window of any CLI tool
  • Free tier60 requests/min, 1,000 requests/day at no cost
  • Open sourceApache 2.0 license, fully transparent
  • Google SearchReal-time web search grounding
  • CheckpointingSave and resume conversation sessions
  • Non-interactive modeScriptable for automation pipelines

Free Tier Limits

Limit Value
Requests per minute60
Requests per day1,000
Context window1,000,000 tokens
CostFree (Google login)

OpenClaw

Multi-channel AI bot framework for 13+ messaging platforms.

OpenClaw is a personal AI assistant framework that runs on your own devices and connects to Telegram, Discord, Slack, WhatsApp, and more. It supports voice, browser control, and a powerful skill system.

Install

Install via npm

$ npm install -g openclaw@latest
bash
# Run onboarding
$ openclaw onboard --install-daemon

Telegram Setup

  1. Create a bot via @BotFather on Telegram (/newbot)
  2. Configure the bot token in OpenClaw config:
config.json5
{
  channels: {
    telegram: {
      enabled: true,
      botToken: "YOUR_BOT_TOKEN",
      dmPolicy: "pairing"
    }
  }
}
bash
# Start gateway and approve pairing
$ openclaw gateway
$ openclaw pairing list telegram
$ openclaw pairing approve telegram <CODE>

Supported Platforms

Platform Status Features
TelegramFull supportDM, groups, inline, voice
WhatsAppFull supportDM, groups, media
DiscordFull supportDM, channels, threads
SlackFull supportDM, channels, threads
SignalSupportedDM, groups
iMessagemacOS onlyDM
Google ChatSupportedDM, spaces
Microsoft TeamsSupportedDM, channels
MatrixSupportedDM, rooms
WebChatBuilt-inBrowser widget

API Overview

OpenAI-compatible REST API for accessing 50+ AI models.

Base URL

Endpoint
https://api.orcai.cc/v1

Quick Example

cURL
Python
Node.js
bash
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
  }'
Python
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)
JavaScript
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/completionsChat completion (streaming supported)
GET/v1/modelsList available models
POST/v1/embeddingsGenerate text embeddings
POST/v1/images/generationsGenerate images

Authentication

Secure your API requests with bearer token authentication.

API Key

All API requests require a valid API key in the Authorization header:

HTTP Header
Authorization: Bearer YOUR_API_KEY

Getting Your API Key

  1. Log in to OrcAI Portal
  2. Navigate to the API Keys section
  3. Click Create New Key
  4. Copy the key immediately - it won't be shown again
Security Best Practices
  • Never expose API keys in client-side code
  • Use environment variables or .env files
  • Rotate keys regularly from the dashboard
  • Use separate keys for development and production

Rate Limits

Plan Price Requests/min Requests/day Models
Starter (Free) Free 10 1,000 3
Pro $49/mo 100 100,000 50+
Enterprise Custom Custom Unlimited 50+ & Custom

Models

50+ AI models from leading providers, accessible through one API.

Anthropic Models

Model ID Context Best For
Claude Opus 4claude-opus-4-6200KComplex reasoning, coding
Claude Sonnet 4claude-sonnet-4-6200KBalanced performance
Claude Haiku 3.5claude-haiku-4-5-20251001200KFast, lightweight tasks

OpenAI Models

Model ID Context Best For
GPT-4ogpt-4o128KMultimodal, general purpose
GPT-4o Minigpt-4o-mini128KCost-effective tasks
o1o1200KAdvanced reasoning
o3o3200KDeep reasoning

Google Models

Model ID Context Best For
Gemini 2.5 Progemini-2.5-pro1MLarge context tasks
Gemini 2.5 Flashgemini-2.5-flash1MFast, cost-effective
Smart Model Routing Set "model": "auto" to let OrcAI automatically route requests to the optimal model based on task complexity.