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.
1. Log in to your account at opencan.ai â 2. Download for your platform â 3. Activate with your license key
# After downloading the archive for your platform:
# Linux/macOS
tar xzf occode-0.1.0-linux-x64.tar.gz
sudo mv occode /usr/local/bin/
# Windows - extract the .zip, then add to PATH
# Activate with your license key
occode activate --key YOUR-LICENSE-KEY
Download the archive for your platform (account login required):
Windows 10/11 (64-bit)
Download for WindowsFile: occode-0.1.0-windows-x64.zip
Size: ~20 MB (45 MB extracted)
SHA256:
d4e8f7b2a1c5678901234def567890abcdef1234567890abcdef1234567890ab
macOS 10.15+ (x86_64)
Download Intel MacFile: occode-0.1.0-macos-x64.tar.gz
Size: ~22 MB (50 MB extracted)
SHA256:
e5f9a3c6d2b7890123456ef789012bcdef34567890abcdef2345678901bcdef3
M1/M2/M3 (Apple Silicon)
Download ARM MacFile: occode-0.1.0-macos-arm64.tar.gz
Size: ~22 MB (50 MB extracted)
SHA256:
f6a1b4d7e3c8901234567f890123cdef45678901bcdef456789012cdef567890
Ubuntu/Debian/Fedora
Download for LinuxFile: occode-0.1.0-linux-x64.tar.gz
Size: ~20 MB (45 MB extracted)
SHA256:
a7b2c5e8f4d1234567890123ef456789012cdef567890123cdef678901234def
After downloading, verify the file's checksum to ensure integrity:
# Windows (PowerShell)
Get-FileHash occode-0.1.0-windows-x64.zip -Algorithm SHA256
# macOS/Linux
shasum -a 256 occode-0.1.0-macos-x64.tar.gz
sha256sum occode-0.1.0-linux-x64.tar.gz
occode-0.1.0-windows-x64.zipC:\Program Files\OCCode)Path variable for your useroccode.exeoccode --version
# Should output: OCCode CLI v0.1.0
# Download and extract
Invoke-WebRequest -Uri "https://www.opencan.ai/downloads/occode-cli/0.1.0/occode-0.1.0-windows-x64.zip" -OutFile "occode.zip"
Expand-Archive -Path "occode.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 and verify
occode --version
occode-0.1.0-macos-x64.tar.gzoccode-0.1.0-macos-arm64.tar.gz# Extract
tar -xzf occode-0.1.0-macos-*.tar.gz
# Move to /usr/local/bin
sudo mv occode-0.1.0-macos-* /usr/local/bin/occode
sudo chmod +x /usr/local/bin/occode
# Verify
occode --version
# Intel Mac
curl -L https://www.opencan.ai/downloads/occode-cli/0.1.0/occode-0.1.0-macos-x64.tar.gz | tar xz && sudo mv occode-* /usr/local/bin/occode && sudo chmod +x /usr/local/bin/occode
# Apple Silicon (M1/M2/M3)
curl -L https://www.opencan.ai/downloads/occode-cli/0.1.0/occode-0.1.0-macos-arm64.tar.gz | tar xz && sudo mv occode-* /usr/local/bin/occode && sudo chmod +x /usr/local/bin/occode
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-0.1.0-linux-x64.tar.gz# Extract
tar -xzf occode-0.1.0-linux-x64.tar.gz
# Install to /usr/local/bin
sudo mv occode-0.1.0-linux-x64 /usr/local/bin/occode
sudo chmod +x /usr/local/bin/occode
# Verify
occode --version
curl -L https://www.opencan.ai/downloads/occode-cli/0.1.0/occode-0.1.0-linux-x64.tar.gz | tar xz && sudo mv occode-* /usr/local/bin/occode && sudo chmod +x /usr/local/bin/occode
# Install to ~/.local/bin
mkdir -p ~/.local/bin
tar -xzf occode-0.1.0-linux-x64.tar.gz -C ~/.local/bin/
chmod +x ~/.local/bin/occode-*
# Add to PATH if not already
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
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 | opencan.ai/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 |