AI-powered coding assistant for the terminal with multi-provider support
OCCode CLI is proprietary software licensed by OpenCan.ai. By downloading and installing, you accept the terms of the OCCode License Agreement. This software may not be redistributed, modified, or reverse-engineered.
OCCode CLI requires an opencan.ai account to download and a valid license key to activate. View pricing plans or log in to your account to get started.
Important: License keys must be activated immediately upon purchase. Your 7-day free trial ends on day 7 and your subscription will be charged on day 8. Cancel before day 8 to avoid charges.
1. Download the zip for your platform → 2. Obtain your license key from your account dashboard → 3. Extract the zip → 4. Activate your license key
# 1. Download the zip file for your platform from the links below
# 2. Obtain your license key from your opencan.ai dashboard
# 3. Extract the zip file:
# Linux/macOS
unzip occode-linux-x64.zip
sudo mv occode /usr/local/bin/
# Windows - right-click the .zip → Extract All, then add folder to PATH
# 4. Activate with your license key
occode activate --key YOUR-LICENSE-KEY
Download the zip file for your platform (free account required):
Windows 10/11 (64-bit)
Download for WindowsFile: occode-windows-x64.zip
Size: 47 MB
SHA256:
cfd3ac3ffb4edada2177cc68b7871c0b710eb93648267ef3e09e131d4dc3e3d4
macOS 10.15+ (x86_64)
Download Intel MacFile: occode-macos-x64.zip
Size: 51 MB
SHA256:
55aa5bbe90a55543befdb15144c864af802c8eb559c782655037e8e6f3592f31
M1/M2/M3/M4 (Apple Silicon)
Download ARM MacFile: occode-macos-arm64.zip
Size: 51 MB
SHA256:
8622de7f8595bd53645e6e919b44e2a9da86a455d25a63e4bab4c0403bf06b71
Ubuntu/Debian/Fedora
Download for LinuxFile: occode-linux-x64.zip
Size: 50 MB
SHA256:
66e34f06c76be5f9bd4822be3e2cf20b23435e867ceb689cc3e141b7df4b1420
After downloading, verify the file's SHA256 checksum to ensure the download was not corrupted:
# Windows (PowerShell)
Get-FileHash occode-windows-x64.zip -Algorithm SHA256
# macOS
shasum -a 256 occode-macos-x64.zip
shasum -a 256 occode-macos-arm64.zip
# Linux
sha256sum occode-linux-x64.zip
Compare the output against the SHA256 values listed above for your platform.
occode-windows-x64.zip (47 MB)Get-FileHash occode-windows-x64.zip -Algorithm SHA2567f4840e8355a2ec64adfe0e667f1486acf19c5313fbb49dcc3c750636307b85aC:\Program Files\OCCode)Path variable for your useroccode.exeoccode activate --key YOUR-LICENSE-KEY
occode --version
# Should output: OCCode CLI v0.1.0
# Extract the downloaded zip
Expand-Archive -Path "occode-windows-x64.zip" -DestinationPath "$env:LOCALAPPDATA\OCCode"
# Add to PATH (user-level)
$path = [Environment]::GetEnvironmentVariable("Path", "User")
[Environment]::SetEnvironmentVariable("Path", "$path;$env:LOCALAPPDATA\OCCode", "User")
# Restart terminal, then activate and verify
occode activate --key YOUR-LICENSE-KEY
occode --version
occode-macos-x64.zip (51 MB)occode-macos-arm64.zip (51 MB)shasum -a 256 occode-macos-*.zip
b62c578b38e771961b53b75f3851edb816ce0339155251af7bf9cf0847640c2453befd5d8d381e24d1bb85072e6332e565350973595cea4210bb7fd227a0e3b5# Extract the zip
unzip occode-macos-*.zip
# Move to /usr/local/bin
sudo mv occode /usr/local/bin/occode
sudo chmod +x /usr/local/bin/occode
# Activate with your license key
occode activate --key YOUR-LICENSE-KEY
# Verify
occode --version
If you see a security warning on first run:
# Remove quarantine attribute
xattr -d com.apple.quarantine /usr/local/bin/occode
# Or allow in System Preferences → Security & Privacy
occode-linux-x64.zip (50 MB)sha256sum occode-linux-x64.zip
Expected: fe27a7e04d1d6aa8511de2e23436f6f2891ad01de8d8cffb84cead12f790b965
# Extract the zip
unzip occode-linux-x64.zip
# Install to /usr/local/bin
sudo mv occode /usr/local/bin/occode
sudo chmod +x /usr/local/bin/occode
# Activate with your license key
occode activate --key YOUR-LICENSE-KEY
# Verify
occode --version
# Install to ~/.local/bin
mkdir -p ~/.local/bin
unzip occode-linux-x64.zip -d ~/.local/bin/
chmod +x ~/.local/bin/occode
# Add to PATH if not already
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Activate with your license key
occode activate --key YOUR-LICENSE-KEY
After installation, configure OCCode with your AI provider:
# Interactive configuration wizard
occode config
# Or set provider and API key directly
occode config --set provider=anthropic
occode config --set-key --provider anthropic
| Provider | Models | Get API Key |
|---|---|---|
| Anthropic | Claude 3.5 Sonnet, Opus, Haiku | console.anthropic.com |
| OpenAI | GPT-4, GPT-4 Turbo, GPT-3.5 | platform.openai.com |
| Gemini Pro, Gemini Ultra | ai.google.dev | |
| OpenRouter | 100+ models (unified API) | openrouter.ai |
| DeepSeek | DeepSeek Coder | platform.deepseek.com |
| Ollama (Local) | CodeLlama, Mistral, etc. | ollama.ai |
Settings are stored in ~/.occode/config.json:
{
"provider": "anthropic",
"model": "claude-sonnet-4-20250514",
"maxTokens": 4096,
"temperature": 0.7,
"autoApprove": false
}
occode config --list-providers
# Start interactive session
occode
# Or explicitly
occode chat
# Resume previous session
occode --session last
# Execute a task
occode run "Add unit tests for UserService"
# Autonomous mode (no approvals)
occode run "Fix all TypeScript errors" --yes
# With specific files in context
occode run "Refactor this component" -c src/App.tsx
# Dry run (preview without executing)
occode run "Update dependencies" --dry-run
# Explain code
occode explain src/auth.ts
# Review code for issues
occode review --security src/
# Generate documentation
occode generate readme
# Search codebase semantically
occode search "authentication logic"
# AI-generated commit message
occode commit
# Auto-stage and commit
occode commit -a
# Commit and push
occode commit -ap
# Watch for changes and run tasks
occode watch -t "Run tests on changed files"
# Watch specific pattern
occode watch -p "src/**/*.ts" -t "Type check"
Available slash commands in chat mode:
| Command | Description |
|---|---|
/help | Show help |
/clear | Clear conversation |
/context <file> | Add file to context |
/status | Show session status |
/cost | Show cost report |
/undo | Undo last change |
/checkpoint | Manage checkpoints |
/git | Show git status |
/commit | Generate commit |
/model <name> | Change model |
/export <file> | Export session |
exit | Exit session |
Issue: occode: command not found
Solution:
occode --version/usr/local/bin or another PATH directoryIssue: Error about missing API key
Solution:
# Set API key securely
occode config --set-key --provider anthropic
# Or via environment variable
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."
Issue: Permission denied when running occode
Solution:
chmod +x /usr/local/bin/occode
Issue: Error about model not being available
Solution:
# List available models for your provider
occode config --list
# Set a valid model
occode config --set model=claude-sonnet-4-20250514
Issue: Requests timeout
Solution:
occode run "task" --timeout 600# Remove the binary
sudo rm /usr/local/bin/occode # macOS/Linux
del %LOCALAPPDATA%\OCCode\occode.exe # Windows
# Remove config (optional)
rm -rf ~/.occode
# View all commands
occode --help
# View help for specific command
occode run --help
occode config --help
# Check version
occode --version
| Task | Command |
|---|---|
| Download | Install Guide - Downloads (account required) |
| Configure provider | occode config |
| Start chat | occode |
| Run task | occode run "task description" |
| Explain code | occode explain file.js |
| Review code | occode review src/ |
| Git commit | occode commit |
| Watch mode | occode watch -t "task" |
| View cost | /cost (in chat) |
| Get help | occode --help |