Installation
Prerequisites
- Node.js:
v20.xor higher - npm:
v10.xor higher
Clone and install
-
Clone the repository and navigate into the project directory:
git clone https://github.com/thiagocolen/pinky-and-the-brain.gitcd pinky-and-the-brain -
Install dependencies:
npm install -
Create a
.envfile in the root directory (see Configuration for the full list of variables):# LLM API Key (Required - Anthropic is the only supported provider)ANTHROPIC_API_KEY=your_anthropic_api_key_here# ANTHROPIC_MODEL=claude-sonnet-5# API Gateway security key (Required for server and clients)PATBA_API_KEY=your_secret_api_key_here# Local StorageSQLITE_DB_PATH=state.dbPORT=8080# AWS Configuration (Optional, falls back to local sqlite/memory offline)AWS_REGION=sa-east-1S3_BUCKET_NAME=pinky-and-the-brain-agents-state-store# Optional integrationsSLACK_BOT_TOKEN=your_slack_bot_token_here
Build the project
Compile TypeScript into JavaScript:
npm run build
The compiled output is emitted to dist/, which is what every npm run <entrypoint>
script executes.
Next steps
Once installed and built, jump to one of the entrypoint guides:
- CLI Usage - a local interactive REPL.
- REST/SSE Server Usage - an HTTP API with streaming.
- MCP Usage - a stdio MCP server for MCP clients.
- ACP & Zed Bridge Usage - the raw ACP protocol and Zed
Editor integration (via
patb-cli).