← Back to Home

OCCode CLI v0.1.0

AI-powered coding assistant for the terminal with multi-provider support

Quick Navigation

Proprietary Software

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.

Download & Install

Account & License Required

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.

Quick Install Steps

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

Platform Downloads

Download the zip file for your platform (free account required):

Windows x64

Windows 10/11 (64-bit)

Download for Windows

File: occode-windows-x64.zip

Size: 47 MB

SHA256:

cfd3ac3ffb4edada2177cc68b7871c0b710eb93648267ef3e09e131d4dc3e3d4

macOS Intel

macOS 10.15+ (x86_64)

Download Intel Mac

File: occode-macos-x64.zip

Size: 51 MB

SHA256:

55aa5bbe90a55543befdb15144c864af802c8eb559c782655037e8e6f3592f31

macOS ARM

M1/M2/M3/M4 (Apple Silicon)

Download ARM Mac

File: occode-macos-arm64.zip

Size: 51 MB

SHA256:

8622de7f8595bd53645e6e919b44e2a9da86a455d25a63e4bab4c0403bf06b71

Linux x64

Ubuntu/Debian/Fedora

Download for Linux

File: occode-linux-x64.zip

Size: 50 MB

SHA256:

66e34f06c76be5f9bd4822be3e2cf20b23435e867ceb689cc3e141b7df4b1420

Verify Download Integrity

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.

Windows Installation

Requirements

Installation Steps

  1. Download the zip file: occode-windows-x64.zip (47 MB)
  2. Obtain your license key from your opencan.ai dashboard
  3. Verify the checksum (PowerShell): Get-FileHash occode-windows-x64.zip -Algorithm SHA256
    Expected: 7f4840e8355a2ec64adfe0e667f1486acf19c5313fbb49dcc3c750636307b85a
  4. Extract the ZIP file to a location (e.g., C:\Program Files\OCCode)
  5. Add to PATH:
    • Open System Properties → Advanced → Environment Variables
    • Edit the Path variable for your user
    • Add the folder containing occode.exe
  6. Activate your license key:
occode activate --key YOUR-LICENSE-KEY
occode --version
# Should output: OCCode CLI v0.1.0

Quick Install (PowerShell)

# 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

macOS Installation

Requirements

Installation Steps

  1. Download the appropriate zip file:
    • Intel Mac: occode-macos-x64.zip (51 MB)
    • Apple Silicon: occode-macos-arm64.zip (51 MB)
  2. Obtain your license key from your opencan.ai dashboard
  3. Verify the checksum:
    shasum -a 256 occode-macos-*.zip
    • Intel: b62c578b38e771961b53b75f3851edb816ce0339155251af7bf9cf0847640c24
    • ARM: 53befd5d8d381e24d1bb85072e6332e565350973595cea4210bb7fd227a0e3b5
  4. Extract and install:
# 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

macOS Gatekeeper

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

Linux Installation

Requirements

Installation Steps

  1. Download the zip file: occode-linux-x64.zip (50 MB)
  2. Obtain your license key from your opencan.ai dashboard
  3. Verify the checksum:
    sha256sum occode-linux-x64.zip
    Expected: fe27a7e04d1d6aa8511de2e23436f6f2891ad01de8d8cffb84cead12f790b965
  4. Extract and install:
# 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

User-level Installation (No sudo)

# 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

Configuration

First-Time Setup

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

Supported AI Providers

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
Google 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

Configuration File

Settings are stored in ~/.occode/config.json:

{
  "provider": "anthropic",
  "model": "claude-sonnet-4-20250514",
  "maxTokens": 4096,
  "temperature": 0.7,
  "autoApprove": false
}

View All Providers

occode config --list-providers

Usage & Examples

Interactive Chat Mode

# Start interactive session
occode

# Or explicitly
occode chat

# Resume previous session
occode --session last

Run Single Tasks

# 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

Code Operations

# 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"

Git Integration

# AI-generated commit message
occode commit

# Auto-stage and commit
occode commit -a

# Commit and push
occode commit -ap

Watch Mode

# 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"

Key Features

Multi-Provider AI Support

Powerful Agent Tools

Advanced Features

Interactive Commands

Available slash commands in chat mode:

Command Description
/helpShow help
/clearClear conversation
/context <file>Add file to context
/statusShow session status
/costShow cost report
/undoUndo last change
/checkpointManage checkpoints
/gitShow git status
/commitGenerate commit
/model <name>Change model
/export <file>Export session
exitExit session

Troubleshooting

Command Not Found

Issue: occode: command not found

Solution:

API Key Not Found

Issue: 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-..."

Permission Denied (Linux/macOS)

Issue: Permission denied when running occode

Solution:

chmod +x /usr/local/bin/occode

Model Not Available

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

Connection Timeout

Issue: Requests timeout

Solution:

Uninstall OCCode

# Remove the binary
sudo rm /usr/local/bin/occode # macOS/Linux
del %LOCALAPPDATA%\OCCode\occode.exe # Windows

# Remove config (optional)
rm -rf ~/.occode

Get Help

# View all commands
occode --help

# View help for specific command
occode run --help
occode config --help

# Check version
occode --version

Additional Resources

Quick Reference

Task Command
DownloadInstall Guide - Downloads (account required)
Configure provideroccode config
Start chatoccode
Run taskoccode run "task description"
Explain codeoccode explain file.js
Review codeoccode review src/
Git commitoccode commit
Watch modeoccode watch -t "task"
View cost/cost (in chat)
Get helpoccode --help
Login Admin Dashboard
Products and Docs
OCCode CLI User Guide OCCode CLI Admin Guide OCCode CLI Install guide OCCode CLI Full Documentation OCCode Pricing
Blog
AI Articles Technical Topics Applications
About Us Terms of Service Privacy Policy Contact Us