Observed since 20 Oct, 21:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Agent Brain CLI - Command-line interface for managing AI agent memory and knowledge retrieval
Command-line interface for managing AI agent memory and knowledge retrieval with the Agent Brain RAG server.
Agent Brain (formerly doc-serve) is an intelligent document indexing and semantic search system designed to give AI agents long-term memory. This CLI provides a convenient way to manage your Agent Brain server and knowledge base.
AI agents need persistent memory to be truly useful. Agent Brain provides the retrieval infrastructure that enables context-aware, knowledge-grounded AI interactions.
| Search Type | Description | Best For |
|---|---|---|
| Semantic Search | Natural language queries using OpenAI embeddings | Conceptual questions, related content |
| Keyword Search (BM25) | Traditional keyword matching with TF-IDF ranking | Exact matches, technical terms |
| Hybrid Search | Combines vector + BM25 approaches | General-purpose queries |
| GraphRAG | Knowledge graph retrieval | Understanding relationships |
pip install agent-brain-cli
agent-brain init # Initialize project
agent-brain start # Start server
agent-brain index ./docs # Index documents
agent-brain query "search term"
Note: The legacy command
doc-svr-ctlis still available but deprecated. Please useagent-brainfor new installations.
cd agent-brain-cli
poetry install
# Check server status
agent-brain status
# Search documents
agent-brain query "how to use python"
# Index documents from a folder
agent-brain index ./docs
# Reset/clear the index
agent-brain reset --yes
Set the server URL via environment variable:
export AGENT_BRAIN_URL=http://localhost:8000
Or use the --url flag:
agent-brain --url http://localhost:8000 status
Note: The legacy environment variable
DOC_SERVE_URLis still supported for backwards compatibility.
| Command | Description |
|---|---|
init | Initialize project for Agent Brain (creates .claude/agent-brain/) |
start | Start the Agent Brain server for current project |
stop | Stop the running server |
list | List all running Agent Brain instances |
status | Check server health and indexing status |
| Command | Description |
|---|---|
query | Search indexed documents |
index | Start indexing documents from a folder |
reset | Clear all indexed documents |
All commands support:
--url - Server URL (or AGENT_BRAIN_URL / DOC_SERVE_URL env var)--json - Output as JSON for scripting# 1. Initialize a new project
cd my-project
agent-brain init
# 2. Start the server
agent-brain start
# 3. Index your documentation
agent-brain index ./docs ./src
# 4. Query your knowledge base
agent-brain query "How does authentication work?"
# 5. Stop when done
agent-brain stop
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 10.7.0 | 3 Sept 2026 | 9 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 21:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:095e6d4f353aeae6082a4c39a64f468afc41dc5ae2961890b5fcf0f6cd6fcbfc