DOCUMENTATION / START

Keys and permissions

Choose the credential for the task. Keep secrets in a private environment or secret store. Do not paste them into commands or committed files.

Connect a client

Open agent setup or Settings → Agents. Where browser sign-in is enabled, choose your client and follow its instructions below. If your workspace shows that sign-in is unavailable, you can continue onboarding and return to Agents later.

Client How to connect
Codex Run codex mcp add barua --url https://barua.ai/mcp, then codex mcp login barua.
Claude Code Run claude mcp add --transport http barua https://barua.ai/mcp. Open /mcp in Claude Code and authenticate barua.
ChatGPT web A workspace admin adds https://barua.ai/mcp as a custom MCP server in Plugins using OAuth. Connect your Barua account. Full management requires Business, Enterprise or Edu. Pro supports reads.
Claude chat Open Customize → Connectors. Add a custom connector with the same server URL, then select Connect. A team or enterprise owner may need to add it first.

Sign in, select a workspace you own and check the client. New connections offer full delegation, including live sending and customer data. Adjust permissions and review checkpoints before selecting Grant access. You can set an expiry.

Ask “What’s left to set up?” Access granted means Barua saved your permissions. Connected means this client successfully used a tool. Edit or revoke access in Settings → Agents.

Open the signed-in Barua link for owner decisions and private tasks. Enter credentials or collect new keys there. Retry the original operation. See client requirements for ChatGPT and Claude.

Management tasks

If a script already uses BARUA_MANAGEMENT_KEY, it can keep using its existing grant with manage.mjs and inspect.mjs. The key applies to its workspace and has no test/live mode.

After installing the skill, set BARUA_SKILL to its directory and run:

node "$BARUA_SKILL/scripts/manage.mjs" capabilities

Read the returned actions and reads entries. Each read lists its required permissions and whether it is allowed. terms_current is separate; some changes require current owner terms even when a scope is present.

Routine Barua updates do not ask you to accept terms again. Use terms_current from the API, or terms.stale from the owner helper, to check whether acceptance is needed. Compatible versions can differ without blocking access. An optional connection such as Google reporting still asks for its own permission.

For script permissions and recovery, see access and discovery.

Server events

BARUA_API_KEY is an integration key with a recorded test/live mode. A test key validates payloads but creates no people and sends no email. Use live mode only for the authorized integration. Historical events use explicit backfill mode.

The event contract defines key capabilities. Management access and event access are separate. Revoking a management connection does not revoke integration keys already installed in a product.

Owner decisions

The owner helper uses either BARUA_OWNER_TOKEN with BARUA_WORKSPACE_ID, or BARUA_OWNER_SESSION_FILE. Do not configure both sources. The session file is private and contains the selected workspace; confirm that selection before changes.

See owner sign-in for file permissions and refresh behavior. Owner authentication does not delegate legal acceptance or destructive decisions to an agent.

Connection problems

The helpers default to https://barua.ai. BARUA_URL overrides the host; HTTPS is required except for localhost development. Run --help on the relevant helper for flags.

On denied access, read the capabilities and recovery rules. Do not switch credentials or use dashboard access to bypass a missing permission.