Quick start
Grab your API key
The installer opens the cubic dashboard in your browser. Generate a key and paste it back in the terminal to finish setup.
Try it
Agent-specific installation
Thenpx installer auto-detects your agent. To target a specific one, pass --to:
- All agents
- Claude Code
- OpenCode
- Codex
- Cursor
- Droid
- Pi
- Gemini CLI
uninstall with the same --to flag you used to install.
API keys are personal to each user. Each team member generates their own key, which grants access
only to repositories they’re authorized to view. Don’t share keys between team members.
Commands
| Command | Description |
|---|---|
/cubic-comments [pr-number] | Show cubic’s review comments on the current PR (auto-detects branch) |
/cubic-run-review [flags] | Run a local cubic AI code review on uncommitted changes or branch diff |
/cubic-wiki [page-name] | Browse AI-generated codebase documentation |
/cubic-scan [scan-id] | View codebase security scan results and issues |
/cubic-learnings [learning-id] | Show team code review patterns and preferences |
Skills
The plugin includes five skills that activate automatically based on what you’re doing:| Skill | Activates when | What it does |
|---|---|---|
review-and-fix-issues | Working on a PR branch or fixing review comments | Fetches all cubic issues, investigates each, and reports which are worth fixing |
run-review | ”Review my code”, pre-commit/PR quality checks | Runs a local cubic AI code review via CLI and surfaces issues |
codebase-context | Asking about architecture or how things work | Queries the cubic AI Wiki for architectural context |
review-patterns | Writing or reviewing code | Pulls team learnings to apply coding conventions |
env-setup | Setting up cubic or pasting an API key | Detects OS and shell, persists API key to shell config |
MCP tools
The plugin connects to cubic’s MCP server, which provides nine tools for accessing cubic data:- Wiki -
list_wikis,list_wiki_pages,get_wiki_page - Codebase scans -
list_scans,get_scan,get_issue - Review learnings -
list_learnings,get_learning - PR reviews -
get_pr_issues
Troubleshooting
Authentication errors
Authentication errors
- Verify your
CUBIC_API_KEYenvironment variable is set - The key must start with
cbk_ - Check the key hasn’t been revoked in cubic settings
- Restart your editor after setting the environment variable
/cubic-run-review not working
/cubic-run-review not working
This command requires the cubic CLI. Install it via:Verify with
cubic --version.Plugin not found (Claude Code marketplace)
Plugin not found (Claude Code marketplace)
- Verify you’re running Claude Code v1.0.33 or later
- Check the marketplace was added:
/plugin marketplace list - Try reinstalling:
/plugin uninstall cubic@cubicthen/plugin install cubic@cubic