Skip to main content Switch to mobile version crabagent 0.19.9 CrabAgent - AI Agent Platform with dual-mode (CLI + Serve)
pip install crabagent==0.19.9 Copy PIP instructions
A local-first AI work assistant for conversations, files, browsers, and the desktop.
English | 中文 · Python 3.12+ · License
CrabAgent brings AI chat, task execution, and a live workspace together. Ask an agent to research a question, edit code or Office documents, navigate a browser, or operate an authorized native macOS app. Use Chat Mode for discussion and Work Mode to inspect documents, code, and prototypes as you work.
Chat and workspace: multiple conversations and workspaces, with Markdown, code editing, document preview, and prototypes. Responses can include Mermaid diagrams, charts, and KPI cards. Sessions can be renamed, pinned, archived, or duplicated together with the active branch history.
Agent team and project memory: delegate research, analysis, coding, or writing when useful; run parallel tasks or pipelines, hand off work, and retain project knowledge and preferences across sessions.
Goals and tasks: track objectives, acceptance criteria, and progress alongside tasks, calendars, scheduled jobs, and meeting action items.
Files and documents: work with local files and create, edit, or preview Word, Excel, and PowerPoint documents. Snapshots support rollback.
Browser and macOS control: the collaboration browser shares login state; opt-in macOS control operates allowlisted native apps. You handle CAPTCHA, MFA, and other human-only steps.
Integrations: MCP, custom tools, email, WeChat, remote access through Tailscale, and task notifications via Bark or ntfy are available with their respective configuration.
Project collaboration: editing intentions are advisory; shared files show current intentions and saved changes, while version checks prevent stale saves.
iOS companion (ios/): a standalone iPhone app built around a Today screen — calendar, one-tap system reminders, and conversations flagged for follow-up — with on-device agent execution, approval-gated write tools, and a personal memory you confirm. Calendar data never leaves the device. It pairs with the desktop over your own network (QR code; LAN or Tailscale, whichever answers) and hands work to the Mac when a request needs the computer — the assistant decides, you tap which machine on an inline card. A Share Extension brings text, PDFs and images in from other apps, with on-device OCR.
Switch modes in the interface; opening or creating a file can also bring up the workspace. The conversation remains available throughout.
For example, ask an agent to summarize a spreadsheet and create a report, or inspect a codebase, explain changes, and run tests. Check sources and results when working with real business data.
Requires Python 3.12 or later.
pip install crabagent crabagent init crabagent # interactive TUI crabagent --serve # Web UI: http://localhost:5210 crabagent "organize this directory" # single CLI request Configure a model provider when prompted, or use Settings for ChatGPT subscription login, MCP, and other integrations. For Gemini models, add a provider with a Google AI Studio API key. Optional browser automation dependencies:
pip install 'crabagent[browser]' playwright install chromium The Web server listens on 0.0.0.0:5210 by default and may be reachable from other devices. Review authentication, network access, and firewall settings before remote use.
The desktop app supports macOS and Windows. After installing CrabAgent, build it with:
crabagent --build-desktop From source, use make desktop on macOS or scripts/build-desktop.ps1 on Windows. The desktop app also includes an optional status pet controlled from the tray or app menu.
ios/ contains a standalone personal-assistant app for iPhone (Swift packages + an xcodegen project). It does not need the Mac app at runtime: the agent loop, tools, approvals and storage run on the device, and the model is reached through the same provider catalog as desktop (API key or subscription).
Today is the home screen: the day's calendar (off / busy blocks only / details shown on device — details are privacy-sensitive and never sent to a model), a one-tap system reminder saved to iOS Reminders, and Continue working for conversations you flagged.
Assistant → desktop: when a request needs the computer, the assistant calls handoff_to_desktop; an inline card lists the paired Macs and tapping one sends the work. One phone conversation maps to one desktop session; the reply comes back into the chat. Pair from desktop Settings → 手机联动 with a QR code — the phone probes both the Tailscale and LAN addresses and keeps whichever answers.
Share Extension: share text, a PDF or an image from any app; it lands in its own conversation with the attachment ready. Images and scanned pages are OCR'd on device.
Assistant is the natural-language entry point. Starter chips only fill the draft. The model can read documents you imported into the current conversation and can create artifacts or reminders only after you approve a dialog that shows what will be written.
Memory about you is stored on the device, proposed into a pending inbox, and only sent to the model after you confirm it.
Build and test it with swift test inside ios/Packages/CrabAgentCore and xcodebuild -project ios/App/CrabAgent.xcodeproj -scheme CrabAgent -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO build; the Swift package tests and simulator build also run in .github/workflows/ios.yml.
Agent Team, Goals, and Memory
Built-in agents include a researcher, data analyst, coding expert, writer, and planner. Choose a role in conversation or let the agent delegate, run independent work in parallel, or connect steps in a pipeline. For straightforward tasks, the current agent can work alone. When a synchronously delegated sub-agent hits an action that needs approval, the confirmation card appears in the current conversation labelled with its origin, and the sub-agent continues once approved; it can also ask you questions.
Goal Mode tracks ongoing work: use the target button or /goal
Project memory retains workspace context, shared knowledge, preferences, and lessons for later sessions. Relevant memories are injected automatically with each user turn: Chinese queries are segmented into whole words, generic terms are filtered by corpus frequency, and keyword hits are fused with semantic (embedding) hits so paraphrases recall as well as exact identifiers. Every memory is recalled on relevance only — nothing is injected unconditionally — and the same memory is not repeated within a session; knowledge that must be known on every turn belongs in the workspace AGENTS.md. Use the task board, calendar, and scheduled tasks for ongoing work; meeting notes can be used to extract action items.
Browser and Desktop Control
The collaboration browser shares its embedded browser login state with you. An agent can navigate, fill non-sensitive fields, and inspect pages; you handle logins, CAPTCHA, and MFA. Sensitive input and high-risk actions remain subject to safeguards.
macOS control is opt-in and requires application authorization. Grant Accessibility and Screen Recording permissions when prompted; the agent can inspect windows and controls and use keyboard and mouse input in allowed apps. Availability depends on the operating system and target application.
Project Collaboration and Safety
Conversations belonging to the same user can share collaboration records. A session with an explicit valid workspace can automatically join its project; unlinking opts the session out. An editing intention describes a file or directory and what you plan to change. Overlap is shown but never blocks editing. File reads and editor panels show relevant intentions and saved-change summaries, with text diffs available on demand. Managed saves check the version and reject stale writes; reread before reapplying a change. Sessions without a project do not send project collaboration tools to the model.
This is cooperative coordination, not an operating-system file lock. Bash no longer automatically claims the entire working directory, but shell commands, background processes, and external editors are not forcibly excluded from writing; version checks detect only some external changes. Records are isolated by user, not shared across accounts.
Remote Access and Integrations
Remote access: use a controlled network such as Tailscale to reach the Web UI. Check the listening address, authentication, and firewall rules first; do not expose the service directly to the public internet.
Notifications and channels: configure Bark or ntfy in Settings for task events. WeChat and email integrations require separate configuration and authorization.
Extensions: connect MCP servers in Settings or add custom tools under .crabagent/tools/. Configure tool and external-service permissions for your use case.
Configuration and Commands
Environment variables use the CRAB_ prefix and can be supplied through the environment or .env. Model providers and integrations can also be managed in Settings.
Use /help in the TUI to list commands. Common commands include /model, /sessions, /new, /agents, /memory, /skills, /molt, and /todo.
make install # build the frontend and install in editable mode ruff check src/ tests/ pytest tests/ cd frontend && npm run build # build the frontend Key directories: src/crabagent/core/ (agent and core services), src/crabagent/serve/ (API), frontend/ (web UI), and src/crabagent/electron/ (desktop app).
Non-commercial use is covered by AGPL-3.0; commercial use requires a separate license. See LICENSE for the full terms.
Released: Dec 4, 2026
Author: Xie Congling
Other/Proprietary License (Commercial)
Development Status 4 - Beta
Intended Audience Developers
License Other/Proprietary License
Operating System OS Independent
Programming Language Python :: 3.12
Topic Software Development :: Libraries :: Python Modules
Release files for crabagent 0.19.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 12.9 MB
Release files / crabagent-0.19.9.tar.gz
Release files / crabagent-0.19.9-py3-none-any.whl
Security for crabagent 0.19.9
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 5, 2026 2 release files No provenance
Dec 4, 2026 2 release files No provenance
Dec 3, 2026 2 release files No provenance
Dec 2, 2026 2 release files No provenance
Nov 30, 2026 2 release files No provenance
Nov 29, 2026 2 release files No provenance
Nov 26, 2026 2 release files No provenance
Nov 25, 2026 2 release files No provenance
Nov 24, 2026 2 release files No provenance
Nov 23, 2026 2 release files No provenance
Nov 19, 2026 2 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 17, 2026 2 release files No provenance
Nov 16, 2026 2 release files No provenance
Nov 13, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
Nov 11, 2026 2 release files No provenance
Nov 7, 2026 2 release files No provenance
Nov 5, 2026 2 release files No provenance
Nov 4, 2026 2 release files No provenance
Oct 29, 2026 2 release files No provenance
Oct 28, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 23, 2026 2 release files No provenance
Oct 22, 2026 2 release files No provenance
Oct 21, 2026 2 release files No provenance
Oct 20, 2026 2 release files No provenance
Oct 9, 2026 2 release files No provenance
Oct 8, 2026 2 release files No provenance
Sep 29, 2026 2 release files No provenance
Sep 28, 2026 2 release files No provenance
Sep 24, 2026 2 release files No provenance
Sep 22, 2026 2 release files No provenance
Sep 21, 2026 2 release files No provenance
Sep 20, 2026 2 release files No provenance
Sep 18, 2026 2 release files No provenance
Sep 9, 2026 2 release files No provenance
Sep 4, 2026 2 release files No provenance
Aug 21, 2026 2 release files No provenance
Aug 3, 2026 2 release files No provenance
Jul 31, 2026 2 release files No provenance
Jul 30, 2026 2 release files No provenance
Jul 29, 2026 2 release files No provenance
Jul 22, 2026 2 release files No provenance
Jul 20, 2026 2 release files No provenance
Jul 19, 2026 2 release files No provenance
Jul 18, 2026 2 release files No provenance
Jul 17, 2026 2 release files No provenance
Jul 15, 2026 2 release files No provenance
Jul 13, 2026 2 release files No provenance
Jul 10, 2026 1 release file No provenance
Jul 6, 2026 2 release files No provenance
Jul 3, 2026 2 release files No provenance
Jul 2, 2026 2 release files No provenance
Jun 30, 2026 2 release files No provenance
Jun 29, 2026 2 release files No provenance
Jun 26, 2026 2 release files No provenance
Jun 22, 2026 2 release files No provenance
Jun 20, 2026 2 release files No provenance
Jun 19, 2026 2 release files No provenance
Jun 18, 2026 2 release files No provenance
Jun 17, 2026 2 release files No provenance
Jun 16, 2026 2 release files No provenance
Jun 12, 2026 2 release files No provenance
Jun 11, 2026 2 release files No provenance
Jun 9, 2026 2 release files No provenance
Jun 8, 2026 2 release files No provenance
Jun 6, 2026 2 release files No provenance
Jun 5, 2026 2 release files No provenance
Jun 4, 2026 2 release files No provenance
Jun 3, 2026 2 release files No provenance
Jun 2, 2026 2 release files No provenance
Jun 1, 2026 2 release files No provenance
May 28, 2026 2 release files No provenance
May 26, 2026 2 release files No provenance
May 25, 2026 2 release files No provenance
May 23, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











