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 CC-Switch to configure all your CLI tools visually.

How It Works

  1. Install OrcAI CLI tools with one command
  2. Download CC-Switch or set env vars to configure
  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 setupCC-Switch configures all CLI tools visually
  • 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):

Install All CLI Tools

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

Step 2: Configure

Download CC-Switch to configure your API key and provider settings with a GUI. Or set environment variables manually:

Manual Configuration (Environment Variables)

$ export ANTHROPIC_BASE_URL=https://api.orcai.cc/v1
$ export ANTHROPIC_API_KEY=YOUR_API_KEY
That's it! You can now use claude, codex, and gemini directly from your terminal. For a visual configuration experience, use CC-Switch.

What Gets Installed

Component Description Command
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.

CC-Switch

Cross-platform desktop app for managing AI CLI tools.

CC-Switch is a cross-platform GUI application for managing AI CLI tools including Claude Code, Codex CLI, and Gemini CLI. It provides a visual interface for provider management, proxy configuration, MCP server setup, and terminal integration.

Features

  • Provider managementAdd, edit, and switch providers with custom API keys and endpoints
  • API format selectionAnthropic Messages API or OpenAI Chat Completions API
  • Proxy configurationBuilt-in proxy settings for restricted networks
  • MCP server managementManage Model Context Protocol servers visually
  • Terminal integrationLaunch and manage CLI tools directly from the app

Install

Windows

Download the MSI installer from GitHub Releases:

PowerShell
# Download latest MSI from GitHub Releases
# https://github.com/farion1231/cc-switch/releases/latest

macOS

Install via Homebrew or download the ZIP:

bash
# Via Homebrew
$ brew install --cask cc-switch

# Or download ZIP from GitHub Releases
# https://github.com/farion1231/cc-switch/releases/latest

Linux

Available as deb, rpm, or AppImage:

bash
# Debian/Ubuntu (.deb)
$ sudo dpkg -i cc-switch_*.deb

# Fedora/RHEL (.rpm)
$ sudo rpm -i cc-switch-*.rpm

# Or use AppImage (no install needed)
$ chmod +x CC-Switch-*.AppImage && ./CC-Switch-*.AppImage
Download Get the latest release for your platform: github.com/farion1231/cc-switch/releases

Add OrcAI as a Provider

Open CC-Switch, go to provider settings, and add OrcAI with these details:

Field Value
Provider Name OrcAI
API Key YOUR_API_KEY
API Endpoint https://api.orcai.cc/v1
API Format Anthropic Messages API
Tip After adding OrcAI as a provider in CC-Switch, all supported CLI tools (Claude Code, Codex, Gemini) will be automatically configured to use the OrcAI gateway.

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
# Launch Claude Code (after configuring via CC-Switch or env vars)
$ 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
# Launch Codex CLI (after configuring via CC-Switch or env vars)
$ 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
# Launch Gemini CLI (after configuring via CC-Switch or env vars)
$ 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

Pricing Plans

Plan Quota Price Validity Models
$10 Trial $10 $1.5 No limit Claude API (Opus 4.6)
$100 Unlimited $100 $14.3 No limit Claude API (Opus 4.6)
$100 Flash Sale $100 $11.5 1 day Claude API (Opus 4.6)
$3,000 Monthly $3,000 $140 30 days ($100/day) Claude API (Opus 4.6)

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.