xubro-cli
v1.0.0
Published
Local CLI coding agent adapted to run against XUBRO's Anthropic-compatible API
Readme
XUBRO Code
XUBRO Code is a local CLI coding agent that brings AI-assisted development to your terminal.
Features
- Project-aware conversations — Understands your codebase context to deliver precise, relevant answers
- Interactive tool execution — Reads files, edits code, runs terminal commands, all with your approval
- MCP support — Connect to external tools and services
- Sub-agents — Delegate complex tasks to specialized agents for refactoring, testing, debugging
- Non-interactive mode (
-p) — Run one-shot prompts for automation and CI pipelines - Permission-controlled — Every file read and command execution requires explicit approval
Requirements
- Node.js 18+
Install
# Run directly (no install required)
npx xubro-code
# Or install globally
npm install -g xubro-code
xubro-codeConfiguration
Set your API key as an environment variable:
# Linux / macOS
export XUBRO_API_KEY="sk-..."
# Windows PowerShell
$env:XUBRO_API_KEY = "sk-..."Optional:
| Variable | Default | Description |
|---|---|---|
| XUBRO_BASE_URL | https://api.xubroai.com/anthropic | API endpoint |
| XUBRO_MODEL | xubro-v4-pro[1m] | Model identifier |
| XUBRO_CODE_CONFIG_DIR | ~/.xubro-code | Local config directory |
Model Aliases
| Alias | Model |
|---|---|
| sonnet, opus, best | xubro-v4-pro |
| haiku | xubro-v4-flash |
Usage
# Interactive chat
xubro-code
# One-shot prompt
xubro-code -p "summarize this repository"Privacy
XUBRO Code is a local CLI tool. It only reads files and executes commands with your explicit approval. Model requests are sent to your configured API endpoint.
API keys, local session data, and .env files are excluded from version control.
