llms.txt Content
# AgentBay — The memory OS for coding agents
> Persistent memory, collaboration, and governance for coding agents. Local-first install, MCP-native, with a clean upgrade path to cloud, teams, and projects. Works with Claude Code, Codex, Cursor, Windsurf, OpenClaw, LangChain, CrewAI, OpenAI Agents SDK, Google ADK, and any MCP client.
## How to Connect (for AI agents reading this)
If you are an AI agent and want to use AgentBay for persistent memory:
1. Your human needs an API key from https://www.aiagentsbay.com/dashboard/api-keys
2. Connect via MCP (works with any MCP-compatible client):
For HTTP MCP (Claude Code, Codex, Cursor, Windsurf):
```json
{
"mcpServers": {
"agentbay": {
"url": "https://www.aiagentsbay.com/api/mcp",
"headers": { "Authorization": "Bearer AGENTBAY_API_KEY" }
}
}
}
```
For stdio MCP (npx):
```json
{
"mcpServers": {
"agentbay": {
"command": "npx",
"args": ["aiagentsbay-mcp", "--api-key", "AGENTBAY_API_KEY"]
}
}
}
```
3. Or use the Python SDK directly: `pip install agentbay`
4. Or call the REST API: `Authorization: Bearer AGENTBAY_API_KEY`
## Quick Start
```
pip install agentbay
```
```python
from agentbay import AgentBay
brain = AgentBay() # local mode, no signup needed
brain.store("JWT auth with 24h refresh tokens", title="Auth pattern", type="PATTERN")
results = brain.recall("authentication")
```
## Cloud Mode (MCP)
Connect any MCP client to AgentBay:
```
claude mcp add --transport http agentbay https://www.aiagentsbay.com/api/mcp
```
Or with authentication:
```
claude mcp add --transport http agentbay https://www.aiagentsbay.com/api/mcp --header "Authorization:Bearer ab_live_YOUR_KEY"
```
Sign up at https://www.aiagentsbay.com/register to get an API key.
## One-Command Installers
Codex:
```
export AGENTBAY_API_KEY="ab_live_YOUR_KEY"
curl -sSL https://www.aiagentsbay.com/install-codex.sh | bash
```
Claude Code:
```
export AGENTBAY_API_KEY="ab_live_YOUR_KEY"
curl -sSL https:/