zhayujie/CowAgent
Self-hosted agent harness for running and remembering work across chat channels
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
CowAgent is a Python end-user application with a decoupled agent harness. A channel passes an incoming message to the agent core, which uses memory and knowledge to plan work, calls a configured model and tools over multiple steps, then returns the result through the originating channel. The root layout separates agent/, channel/, models/, plugins/, and skills/, with app.py at the root and the cow CLI mapped to cli.cli:main.
pyproject.toml discovers cli* packages and declares Click and Requests; it is not the full service dependency manifest. requirements.txt adds aiohttp, NumPy, markdown-it-py for structure-aware chunking of memory and knowledge files, and croniter for scheduling. Built-in tools expose individual operations; manifest-defined skills combine them into workflows. MCP adds external tools through stdio or SSE, with hot reload through mcp.json.
Key Capabilities & Differentiators
A single instance can serve Web, WeChat, Feishu/Lark, Telegram, Slack, and other channels in parallel, with text, image, file, voice, and group support varying by integration. Chat, vision, image generation, ASR, TTS, and embeddings can be routed separately. The provider matrix includes Claude, OpenAI, Gemini, DeepSeek, and Qwen; Claude is listed for chat and vision, whereas Qwen covers all six categories. Agents can collaborate in a shared conversation while retaining separate models, skills, memory, knowledge, and workspaces.
Memory progresses from conversation context to daily records to MEMORY.md. Nightly Deep Dream consolidates memory, while retrieval combines keywords and vectors. A separate topic-oriented Markdown wiki maintains cross-references and indexes and has a graph view in the Web console. The self-evolution feature reviews prior conversations to refine skills and follow up on unfinished work. These are changes to retained information and workflows, not model-weight training.
Trade-offs & Limitations
Compared with a simple LLM chat frontend, CowAgent adds scheduling, tool execution, persistent memory, and multi-channel delivery, but those features also create state and credentials the operator must maintain. Compared with building on a lower-level agent framework, it saves the work of assembling a console and messaging integrations. The trade is that teams with strict isolation requirements must verify the application's actual authorization and execution boundaries rather than assuming separate workspaces provide isolation.
Terminal and file tools, browser automation, third-party skills, and MCP servers widen the permissions a deployed agent may exercise. Start with only the tools each workflow needs, use restricted service credentials, and keep guest-facing workflows away from privileged tools. Self-hosting gives operators control over the service and workspace, not over every data path: external model calls and channel integrations can still carry content off-host. Latency and cost depend on provider choice, the number of planning and tool steps, and concurrency.
Hardware & Deployment Guide
For a self-hosted installation, the quick start offers a source installer or Docker Compose; the local Web console opens on port 9899. The root Dockerfile extends ghcr.io/zhayujie/cowagent:latest and sets /entrypoint.sh as its entrypoint. Review the Compose file and pin an image version or digest for repeatable deployments. The Python >=3.7 declaration applies to CLI packaging metadata and should not be taken as a compatibility guarantee for the full service. Notably, the service requirements select aiohttp <3.10 before Python 3.13 and >=3.10 from Python 3.13 onward.
For remote access, set web_password before binding web_host to 0.0.0.0, and put the console behind a private network or authenticated TLS proxy rather than exposing it directly. The macOS and Windows desktop client bundles the backend; API-backed self-hosting still requires provider connectivity. Release 2.2.1 added Artifacts and the Agent Chat API, 2.2.2 introduced guest pages and embeds, and 2.3.0 added public-beta mobile apps for iOS, Android, and HarmonyOS that can run an agent on-device or pair with a desktop or server instance.
mcp.json using stdio or SSE with hot reload.MEMORY.md form three memory tiers; nightly Deep Dream consolidates entries, while retrieval combines keyword and vector search.Individuals and small teams that want a self-hosted assistant to handle recurring tasks, build a shared knowledge base, and deliver results through existing chat channels.
You only need stateless Q&A, or you require strict offline operation, tenant isolation, or audit controls that you have not validated in your deployment.
Quick Start & Installation
curl -O https://cdn.link-ai.tech/code/cow/docker-compose.yml docker compose up -d
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| CowAgent ★ | 48.2k | +116 | Python | MIT | Self-hosted agent harness for running and remembering work across chat channels |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
| AstrBot | 47.9k | +298 | Python | AGPL-3.0 | A self-hosted Python agent hub that connects chat platforms to model providers |
| QwenPaw | 38.5k | +246 | Python | Apache-2.0 | Self-hosted agent workspace for scheduled tasks and chat across apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/zhayujie/CowAgent.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about CowAgent
How do I connect more than one messaging channel and add external tools?
mcp.json and supports stdio and SSE transports with hot reload. Channel capabilities differ: for example, Slack supports files but not voice in the integration matrix, while Telegram supports both.Does a self-hosted instance need a GPU, and what drives resource usage?
Can we self-host CowAgent commercially and keep sensitive data on-premises?
When is CowAgent a better fit than a chat frontend or a lower-level agent framework?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy