Connect your agents and systems to ValorBrain
The shortest path from the terminal to memory: one command that sets up your agents, MCP with a bearer token, a REST API with an OpenAPI contract and the agent-ready layer of this domain. The full documentation lives at docs.valorbrain.com.br.
What the command does
Paste it in a terminal on the computer where you use Claude Code, Codex, Cursor, Gemini CLI, Kiro, OpenCode or Hermes. It finds the agents, opens the browser for you to approve the computer, and sets up MCP, the memory rules and hooks in each one, with one token of yours for the computer, used by all of them.
No account yet? You create it on the same approval screen. On Windows without Node.js, the script offers to install the LTS with winget. The hooks send the prompt of each turn to your workspace to fetch memory; no hooks: --mcp-only (Hermes has no hooks: its memory plugin keeps sending the prompt; use --prompt off there); --remove undoes everything. What leaves the machine and how to turn it off: https://docs.valorbrain.com.br/en/docs/concepts/what-leaves-your-machine
Or set it up by hand
Connect your agent over MCP
Pick your client, paste the vbm_ token and call memory_prepare to check the connection. Without an account, the agent creates its own with one command; the full walkthrough, which you can send straight to the agent, is at /connect.
npx -y @valorbrain/connect@latest --token <vbm_…> --harness claude-codeNo hooks (MCP and rules, nothing sent per turn):
npx -y @valorbrain/connect@latest --token <vbm_…> --harness claude-code --mcp-onlyOr MCP by hand:
claude mcp add --transport http --scope user valorbrain https://mcpbrain.valor.digital/mcp --header "Authorization: Bearer <vbm_…>"npx -y @valorbrain/connect@latest --token <vbm_…> --harness codexNo hooks (MCP and rules, nothing sent per turn):
npx -y @valorbrain/connect@latest --token <vbm_…> --harness codex --mcp-onlyOr MCP by hand:
export VALORBRAIN_MCP_TOKEN=<vbm_…>codex mcp add valorbrain --url https://mcpbrain.valor.digital/mcp --bearer-token-env-var VALORBRAIN_MCP_TOKENnpx -y @valorbrain/connect@latest --token <vbm_…> --harness kiroNo hooks (MCP and rules, nothing sent per turn):
npx -y @valorbrain/connect@latest --token <vbm_…> --harness kiro --mcp-onlyOr MCP by hand:
{ "mcpServers": { "valorbrain": { "url": "https://mcpbrain.valor.digital/mcp", "headers": { "Authorization": "Bearer <vbm_…>" } } }}npx -y @valorbrain/connect@latest --token <vbm_…> --harness gemini-cliNo hooks (MCP and rules, nothing sent per turn):
npx -y @valorbrain/connect@latest --token <vbm_…> --harness gemini-cli --mcp-onlyOr MCP by hand:
{ "mcpServers": { "valorbrain": { "httpUrl": "https://mcpbrain.valor.digital/mcp", "headers": { "Authorization": "Bearer <vbm_…>" } } }}npx -y @valorbrain/connect@latest --token <vbm_…> --harness cursorNo hooks (MCP and rules, nothing sent per turn):
npx -y @valorbrain/connect@latest --token <vbm_…> --harness cursor --mcp-onlyOr MCP by hand:
{ "mcpServers": { "valorbrain": { "url": "https://mcpbrain.valor.digital/mcp", "headers": { "Authorization": "Bearer <vbm_…>" } } }}{ "servers": { "valorbrain": { "type": "http", "url": "https://mcpbrain.valor.digital/mcp", "headers": { "Authorization": "Bearer <vbm_…>" } } }}Connectors → Add custom connector → MCP URL: https://mcpbrain.valor.digital/mcp. Authorization is OAuth, no token to paste.
Customize → MCPs → Add custom MCP, at your Personal scope or once at the organization's: transport HTTP, URL https://mcpbrain.valor.digital/mcp, authentication OAuth (at organization scope, Access set to Personal). Then each person clicks Connect and signs in with their own account, no token to paste. Step by step: https://docs.valorbrain.com.br/en/docs/integrations/devin
npx -y @valorbrain/cli mcpFor any client that only speaks stdio. Uses the token saved by the CLI.
npx -y @valorbrain/connect@latest --token <vbm_…>Optional: sets up MCP, memory rules and hooks in every agent on the computer. The hooks send the prompt of each turn to the workspace: tell the human first. What each hook sends, and how to stop sending the prompt: https://docs.valorbrain.com.br/en/docs/concepts/what-leaves-your-machine
{ "mcpServers": { "valorbrain": { "type": "http", "url": "https://mcpbrain.valor.digital/mcp", "headers": { "Authorization": "Bearer <vbm_…>" }, "description": "ValorBrain shared company memory for AI agents: retrieve, store, handoffs, audit. The MCP accepts only vbm_ tokens. No account: npx -y @valorbrain/cli@latest init --agent --agent-caller <agent-name> --json returns mcp_token. With an account: https://valorbrain.valor.digital/settings/mcp-tokens.", "docs": "https://valorbrain.com.br/connect.md" } }}REST API
A REST API with an open contract
The public SaaS API answers at this base URL and the full contract is OpenAPI 3.1. The browsable reference lives inside the app, behind the workspace login.
Base URL
https://valorbrain-api.valor.digital
- OpenAPI specification
- openapi.json
- Browsable reference (workspace login)
- api-docs
- API service catalog
- api-catalog
Authentication
Bearer token in the Authorization header. MCP accepts only the vbm_ token; the REST API uses the vb_agent_ key (agent account) or vb_. auth.md documents each case, including OAuth and a device flow for headless clients.
Read auth.mdFirst step
The sandbox is the product
There is no separate test environment: you try it in your own workspace, with one real project and the agents you already use. One free project to prove it in your real workflow; the paid steps have their prices published at /pricing.
The link goes through the product login and returns to the connection onboarding.
For AI agents
This site speaks to machines too
The public domain is agent-ready: pages exist as clean Markdown at the same URL with a .md suffix (full index in llms.txt), and the discovery files live at the root.
- llms.txt
Curated index of this site for LLMs.
- llms-full.txt
All .md mirror content in a single document.
- .well-known/agent-card.json
MCP server card (A2A): endpoint, transport and authentication.
- .well-known/security.txt
Security contact and disclosure policy.