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.1.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.1-py3-none-any.whl (558.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crabagent-0.9.1.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.1.tar.gz
Algorithm Hash digest
SHA256 40b29116f1c6e8449ac34720539ee9801bcf788d21f49225923de5b578bc0ecb
MD5 e46dcb728e6ed04fad22170cdd6cb24f
BLAKE2b-256 8ce19cf520e1219a1a579eca04b6101586d91bec1669242a5207f990d33080da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crabagent-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 558.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b955645f0254d50888808e8d6cf0e9569f4c2bfb4a107b6c7d652fee0e925de
MD5 057d72a0a754b8333e35681464576342
BLAKE2b-256 bac538127d2355929563b8f3f29173262792266aad2c5af606f6e5f1914abdbd

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