Bee CLI is the command-line interface for interacting with your Bee data. It allows you to export your conversations, facts, todos, and more to local markdown files.
Two Ways to Work with Bee #
You can work with Bee in two ways:
- CLI : Use
beecommands directly in your terminal. This is usually the best option for AI agents because it provides markdown output by default, supports JSON when needed, and works well with local automation. - API : Call the Bee developer API over HTTPS from your app or service, through the public endpoint, a local
bee proxy, or raw TLS. SeeAPI documentation .
Prefer to wire Bee directly into an AI assistant? Connect it over MCP to give tools like Claude, Claude Code, or Codex live access to your Bee context.
This guide continues with the CLI workflow.
Prerequisites #
To use the Bee CLI, you must have the Bee iOS app installed and Developer Mode unlocked by tapping app Version 5 times. See the Developer Mode guide.
Installation #
npm
npm install -g @beeai/cli
Verify the installation:
bee version
Output Modes #
Data commands render markdown by default. Add --json when you need machine-readable output.
markdown
bee me
Authentication #
Login to your Bee account
Run the login command:
bee login
Verify your connection
Check that you’re authenticated:
bee status
Test the connection
Ping the Bee servers:
bee ping
Your First Commands #
Once authenticated, try these commands to explore your data:
markdown
bee me
bee today
bee now
bee facts list
bee todos list
bee search --query "project roadmap"
bee search --query "What do you know about me?" --neural
Syncing Your Data #
The most powerful feature of Bee CLI is the ability to sync your data to local markdown files:
bee sync
This creates a bee-sync/ directory with all your data organized in markdown format. See the Full Sync documentation for more details.
Logging Out #
To clear your credentials:
bee logout
Next Steps #
- Learn about all available CLI commands
- Learn how to use Search (default and neural modes)
- Set up automatic Full Sync for your data
- Use Realtime Sync for real-time events
- Run a local API server
- Connect your AI assistant with MCP