← 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.

✨ Quick Install Steps

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

💾 Platform Downloads

Download the archive for your platform (account login required):

đŸĒŸ

Windows x64

Windows 10/11 (64-bit)

Download for Windows

File: occode-0.1.0-windows-x64.zip

Size: ~20 MB (45 MB extracted)

SHA256:

d4e8f7b2a1c5678901234def567890abcdef1234567890abcdef1234567890ab

🍎

macOS Intel

macOS 10.15+ (x86_64)

Download Intel Mac

File: occode-0.1.0-macos-x64.tar.gz

Size: ~22 MB (50 MB extracted)

SHA256:

e5f9a3c6d2b7890123456ef789012bcdef34567890abcdef2345678901bcdef3

🍎

macOS ARM

M1/M2/M3 (Apple Silicon)

Download ARM Mac

File: occode-0.1.0-macos-arm64.tar.gz

Size: ~22 MB (50 MB extracted)

SHA256:

f6a1b4d7e3c8901234567f890123cdef45678901bcdef456789012cdef567890

🐧

Linux x64

Ubuntu/Debian/Fedora

Download for Linux

File: occode-0.1.0-linux-x64.tar.gz

Size: ~20 MB (45 MB extracted)

SHA256:

a7b2c5e8f4d1234567890123ef456789012cdef567890123cdef678901234def

â„šī¸ Verify Download Integrity

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

đŸĒŸ Windows Installation

Requirements

Installation Steps

  1. Download the Windows package: occode-0.1.0-windows-x64.zip
  2. Extract the ZIP file to a location (e.g., C:\Program Files\OCCode)
  3. Add to PATH:
    • Open System Properties → Advanced → Environment Variables
    • Edit the Path variable for your user
    • Add the folder containing occode.exe
  4. Verify installation:
occode --version
# Should output: OCCode CLI v0.1.0

Quick Install (PowerShell)

# 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

🍎 macOS Installation

Requirements

Installation Steps

  1. Download the appropriate package:
    • Intel Mac: occode-0.1.0-macos-x64.tar.gz
    • Apple Silicon: occode-0.1.0-macos-arm64.tar.gz
  2. Extract and install:
# 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

Quick Install (One-liner)

# 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

âš ī¸ 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 Linux package: occode-0.1.0-linux-x64.tar.gz
  2. Extract and install:
# 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

Quick Install (One-liner)

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

User-level Installation (No sudo)

# 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

âš™ī¸ 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
Downloadopencan.ai/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