Install
| Phase | What happens |
|---|---|
| Allocate | Creates a managed Postgres database (with pgvector and pg_trgm extensions) for this agent |
| Provision | Clones gbrain from GitHub into the sandbox and installs dependencies |
| Initialize | Runs gbrain init against the managed database to create the schema |
| Wire | Adds gbrain as an MCP server in the core’s config and restarts the gateway |
| Verify | Runs gbrain doctor to confirm the installation |
What the agent gets
After install, the agent has these tool groups available:| Group | Tools | What they do |
|---|---|---|
| Pages | put_page, get_page, delete_page, list_pages | Store and retrieve knowledge pages with Markdown content |
| Search | query (vector + keyword hybrid), search (full-text) | Find pages by meaning or keywords |
| Versions | get_versions, revert_version | Page version history |
| Graph | add_link, remove_link, get_links, get_backlinks, traverse_graph | Link pages into a knowledge graph |
| Tags | add_tag, remove_tag, get_tags | Categorize pages |
| Timeline | add_timeline_entry, get_timeline | Chronological event log |
| Files | file_upload, file_list, file_url | Attach files to the knowledge base |
| System | get_stats, get_health, sync_brain | Health checks and maintenance |
Test it
After installing, message your agent on Telegram:Managed database
The database that backs gbrain is managed by OpenComputer — you don’t need to provision or configure Postgres yourself. The database:- Lives outside the sandbox on a shared Postgres cluster
- Survives instance restarts and sandbox recreation
- Is preserved when you uninstall gbrain (your data isn’t deleted)
- Is restored when you reinstall gbrain on the same agent
Uninstall
Debugging
Shell into the sandbox to inspect the installation:- “missing executable ‘bun’” in gateway logs — the MCP config needs absolute paths (e.g.,
/home/sandbox/.bun/bin/bun), not barebun - Embedding failures — gbrain uses OpenAI for vector embeddings. If
OPENAI_API_KEYis missing from the MCP env config, pages are stored but semantic search won’t work - Gateway didn’t pick up MCP — check if the gateway restarted after the wire phase. Run
hermes gateway run --replacefrom the shell to force a restart