Catalog PyPI
PACKAGE EXPLORERView in registry

agent-brain-cli

PyPI

Agent Brain CLI - Command-line interface for managing AI agent memory and knowledge retrieval

agent-brainagent-memoryai-agentai-memoryclaude-codeclillm-memoryragsemantic-search
Versions collected1
Direct dependencies9From release 10.7.0
Last observed20 Oct, 21:34 UTC

README

Version 10.7.0 documentation

Agent Brain CLI

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.

PyPI version Python 3.10+ License: MIT

Why Agent Brain?

AI agents need persistent memory to be truly useful. Agent Brain provides the retrieval infrastructure that enables context-aware, knowledge-grounded AI interactions.

Search Capabilities

Search TypeDescriptionBest For
Semantic SearchNatural language queries using OpenAI embeddingsConceptual questions, related content
Keyword Search (BM25)Traditional keyword matching with TF-IDF rankingExact matches, technical terms
Hybrid SearchCombines vector + BM25 approachesGeneral-purpose queries
GraphRAGKnowledge graph retrievalUnderstanding relationships

Installation

pip install agent-brain-cli

Quick Start

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-ctl is still available but deprecated. Please use agent-brain for new installations.

Development Installation

cd agent-brain-cli
poetry install

Usage

# 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

Configuration

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_URL is still supported for backwards compatibility.

Commands

Server Management

CommandDescription
initInitialize project for Agent Brain (creates .claude/agent-brain/)
startStart the Agent Brain server for current project
stopStop the running server
listList all running Agent Brain instances
statusCheck server health and indexing status

Data Management

CommandDescription
querySearch indexed documents
indexStart indexing documents from a folder
resetClear all indexed documents

Options

All commands support:

  • --url - Server URL (or AGENT_BRAIN_URL / DOC_SERVE_URL env var)
  • --json - Output as JSON for scripting

Example Workflow

# 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

Documentation

Release Information

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
10.7.03 Sept 20269

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
spillwavesolutions/agent-brain

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:095e6d4f353aeae6082a4c39a64f468afc41dc5ae2961890b5fcf0f6cd6fcbfc