Skip to main content

CrabAgent - AI Agent Platform with dual-mode (CLI + Serve)

Project description

🦀 CrabAgent

AI Team Command Center — Build a team of specialized AI agents that learn and improve over time. Delegate, parallelize, and watch them work in real-time from terminal or browser.

CrabAgent is a local-first AI agent platform. Run it from any project directory via CLI, browser, or native macOS desktop app. Your data stays local, your API keys are encrypted, and you pick any LLM provider.

PyPI version Python 3.12+ License: AGPLv3

English | 中文


Why CrabAgent

Unlike other agent platforms where agents are "temporary workers who forget everything," CrabAgent's agents learn and evolve:

Capability What it means
🧠 Self-Evolving Agents Agents auto-extract lessons from every task — rule engine catches patterns, LLM reflection analyzes strategies. The more you use them, the smarter they get.
🤖 AI Team Custom agent profiles with per-agent tool whitelists and model overrides. Delegate, parallelize, or run multi-step pipelines.
📊 Agent Growth Tracking View each agent's stats: task count, success rate, lessons learned, common task categories. ctrl+space agent_stats
⏱ Scheduled + Real-time Agents run on cron schedules or react to @mentions. Real-time streaming of every agent's output.
🦀 Snapshots Auto-snapshot files before changes. Roll back anytime without Git.
🖥️ Desktop App Native macOS app via Electron. Auto-starts backend, auto-login, same UI as browser.
🔒 Local-first All data stays on your machine. API keys encrypted at rest. No telemetry.

Quick Start

pip install 'crabagent[serve]'

crabagent init

# TUI — interactive REPL with slash commands
crabagent

# TUI (legacy single-panel)
crabagent --old

# Web UI
crabagent --serve          # → http://localhost:5210
                           # Default login: admin / xcl1989

# Single-query CLI
crabagent "organize this directory"
crabagent -p deepseek -m deepseek-chat "write a Python script"

Desktop App (macOS)

# Build from source:
cd electron && npm install && npm run build:mac
# → electron/dist-electron/CrabAgent-0.9.0-arm64.dmg

Double-click CrabAgent.app — it auto-starts the Python backend, logs in, and opens the full Web UI in a native window. Requires Python 3.12+ with crabagent[serve] installed.

Installation

CLI + Web Server

pip install 'crabagent[serve]'          # CLI + Web UI + API
pip install 'crabagent[browser]'        # Browser automation
pip install 'crabagent[dev]'            # Testing + linting

Desktop App

Clone the repo and build from source (see above). Requires Python 3.12+ with crabagent[serve] and Node.js 20+.

# Development
make install            # Build frontend + install (editable)
ruff check src/ tests/  # Lint
ruff format src/ tests/ # Format
pytest                   # Run tests

Project Structure

CrabAgent/
├── src/crabagent/
│   ├── cli/           # CLI entrypoint + TUI
│   ├── core/agent/    # Agent loop, tools, compression, agents
│   ├── core/mcp/      # MCP client manager
│   └── serve/         # FastAPI + API + scheduler
├── frontend/          # React SPA
├── electron/          # Electron desktop app
│   ├── main.js        # Main process (starts Python backend, loads Web UI)
│   ├── preload.js     # Renderer preload
│   └── build/icon.png # App icon
└── crabagent.db       # SQLite database

License

GNU Affero General Public License v3 (AGPLv3) for non-commercial use. Commercial use requires a separate license. Contact the author.

See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crabagent-0.9.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crabagent-0.9.0-py3-none-any.whl (569.1 kB view details)

Uploaded Python 3

File details

Details for the file crabagent-0.9.0.tar.gz.

File metadata

  • Download URL: crabagent-0.9.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for crabagent-0.9.0.tar.gz
Algorithm Hash digest
SHA256 19bd36361ebb95e3ee6bdc57c1cd863f2676052931a2f4471b11382bc3396886
MD5 4f620d2ffc269602fab927daa421250a
BLAKE2b-256 51f212da6bc9cb3bd3e0fe572f15aada957506b747a5f6929a9566547a12f6e6

See more details on using hashes here.

File details

Details for the file crabagent-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: crabagent-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 569.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for crabagent-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b3b49125dc7aede94a8bcb54ada2cc6615d8722b9a9c9761d109f3e028b4177
MD5 4f9bd1499e39168f6302a1c34cf3c1a3
BLAKE2b-256 da00090bd764828e68d731acda241163fd7f67a7c2a05adc13671d44cb0be98a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page