Where to look first#
Most questions are answered by two pages in the dashboard at app.bastn.ai:
- Activity has a row for every call and decision, with the verdict and the reason. Use the Denied, Held and Errors quick filters, or filter by agent, tool or time, and open the row. See Audit log.
- Agents shows each agent's status. An agent's drawer links to its rows with View activity and Denied calls, and its Access view shows the tools it can see.
If you are still stuck, write to support@bastn.ai with the time of the call, the agent or key name (never the key itself), and the error message.
The agent cannot connect#
HTTP 401#
/mcp answers 401 when the request carries no credential bastn recognizes. Check that:
- the URL is
https://mcp.bastn.ai/mcp; - the client sends
Authorization: Bearer bastn-sk-…with the whole key, or has completed its OAuth sign-in; - the key was not deleted. A deleted key is unknown.
An OAuth client whose access was revoked also gets 401. It signs in again. A paused OAuth login gets 401 too, until its user or a team admin resumes it under Agents, Connected apps, and so does an app your org blocked. See Connect MCP clients.
The key is disabled or expired#
A key that bastn recognizes but no longer accepts gets an error that says why, such as virtual key is disabled or virtual key is expired. Keys can be disabled by an admin, expire on their date, or be disabled when their owner leaves the team or becomes a viewer. Mint a new key under Agents, Keys, or in the agent's drawer.
HTTP 403: the credential acts as no agent#
Every key and OAuth login must act as an agent. A key attached to no agent, or an OAuth login bound to none, gets 403 with this gateway accepts only credentials that act as an agent. For a key, open Agents, Keys and use Make an agent in the key's menu, or attach it to an existing agent with Change agent. For an OAuth login, sign in to the app again, pick an agent under Acts as agent, and revoke the old login under Agents, Connected apps.
The agent is paused, killed or retired#
The error names the agent and its status, such as agent "deploy-bot" is paused. A team admin resumes a paused agent. A killed agent needs Revive and new keys, because a kill revokes its old ones. A retired agent cannot come back. See Stop an agent.
The member was suspended#
When an org admin suspends a member, every key, agent key and OAuth login they hold in that org stops. An org admin resumes them under Settings, Organization, Org members. See Stop other credentials.
An agent can also be refused because its team requires an owner or a risk tier that it does not have. The error says what is missing; set it in the Governance view of the agent's drawer.
A tool is not visible#
An agent sees only the tools every layer allows. Check, in order:
- The server belongs to the key's team. A key reaches its own team's servers only. A tool on another team's server answers
no federated member exposes tool, as if it did not exist. - The server is enabled, and, for a connector server, the connector is online.
- The tool is pinned. Servers deny new tools until you enable them in the server's drawer (Enable all N tools) or pin them on the All tools tab of Tools. On a server that holds new or changed tools, look in Approvals, Tool reviews (under More).
- The server's policy allows it. Check
allow_toolsanddeny_tools, and any role that applies to the user. - The agent's category or bundle includes it. A category is an allow-list; any other tool is hidden.
Tools appear as <server>__<tool>. Some MCP clients cache the tool list; reconnect the client after a change. See Policies and tool access.
A call is refused#
The error message says which check refused it, and the audit row has the same reason.
| Message or code | What it means | What to do |
|---|---|---|
JSON-RPC -32000, a policy reason | A tool or argument rule denied the call | Change the server's policy, if the call should be allowed |
tool <x> is not in category <c> | The agent's category does not include the tool | Add the tool to the category |
JSON-RPC -32003, retry after Ns | A rate limit was reached | Wait, or raise the limit |
run budget exceeded: … | A run budget in block mode was used up | Start a new run, or raise the budget |
JSON-RPC -32002 | The call's approval was rejected or expired | Make the call again for a new hold |
waiting for review | The server holds the tool (hold) until a person decides | Approve it in Approvals, Tool reviews, then retry the call |
| HTTP 413 | The request is larger than the gateway accepts (8 MiB on Hosted) | Send less in one call |
A call is held#
JSON-RPC error -32001, approval required, means the call waits for a person. It carries the approval id. A team admin approves it under Approvals, then the agent retries the identical call. The person who made the call cannot approve it. See Approvals.
A hold expires after an hour by default, and an approval must be used within an hour.
Connector problems#
The connector is offline#
Calls to its servers fail with connector <name> is offline.
- Check the service on the host:
systemctl status bastn-connectorandjournalctl -u bastn-connector -ffor the Linux install,docker logs -f bastn-connectorfor Docker. - The connector needs outbound access to the connector hub address in its
connector.yaml(hub.bastn.ai:18093on Hosted). No inbound port is needed. - A disabled connector keeps retrying and comes back when you enable it.
- If its certificate expired while it was down, enroll it again with a new join token.
The connector stopped and does not restart#
A connector that bastn refuses for good (it was revoked or deleted) stops itself with exit status 3. Mint a new join token and enroll the host again. To keep its name on a new host, tick Replace it when the form says the name is taken.
The connector is outdated#
A connector below the minimum version shows upgrade needed, and its calls fail with connector <name> runs a version this gateway no longer serves. It stays connected so you can upgrade it. See Updates.
Other connector errors#
| Message | Meaning |
|---|---|
connector <name> does not offer <capability> | The capability is not in connector.yaml, or its upstream did not answer when the connector started |
connector <name> is busy | Too many calls in flight; retry later |
connector <name> was replaced; re-expose it on this server | The connector was deleted and its name enrolled again; expose the capability again |
connector timeout | The call ran past its time limit; see A call runs out of time |
Connectors behind a relay are offline#
Connectors behind a relay reach bastn only through it. Check that the relay is online and enabled: disabling or revoking the relay disconnects every connector behind it. Check that each connector can reach the relay's address on its port (18095 by default), and that the relay and its connectors agree on TLS: a connector set up with TLS cannot use a relay without it.
The join token does not work#
A join token is single-use and expires after 1 hour unless it was minted with a longer lifetime. Make a new one under Tools, Connectors, New connector. An existing enrollment is kept unless the token was made with Replace it ticked.
A call runs out of time#
A call that runs past its time limit fails with a message that says what the limit was. By default a call gets 5 minutes.
- The agent can ask for more time on one call with
_meta["ai.bastn/timeout_seconds"], up to the org's maximum. - If the message says the call asked for more than the org allows, an org admin raises the maximum under Settings, Organization, Advanced, Tool call duration.
See Long calls.
The call answered with a call id#
A call still running after 45 seconds keeps running on bastn and answers with a call id. That is not an error. The agent gets the answer with call_result, using that id. See Durable calls.
A key cannot be minted#
Every new key is minted for an agent, so New key under Agents, Keys asks for one, and only a team admin of the agent's team can mint it. If the team has no agent yet, New key offers New agent, which creates the agent and its key together. A script that calls POST /api/vkeys or POST /api/keys gets 400 agent_required; mint with POST /api/agents/{id}/keys instead.
Not found or forbidden in the dashboard#
Something that belongs to another org, or to a team you cannot see, answers as not found, the same as something that does not exist. If you can see something but cannot change it, you need a higher role: team admin for servers, keys, agents and connectors of the team, org admin for approval policies, the approval webhook and legal holds. See Concepts.
Signing in#
The sign-up email did not arrive#
On the "Check your email" page, choose Send the link again. It can be sent once a minute, and earlier links stop working. Use another email goes back to the form. The link works once, for 24 hours.
Too many attempts#
After too many wrong passwords or codes, sign-in is locked for a while and the page says how long to wait. A password reset by email (Forgot password?) unlocks the account at once.
An old dashboard link opens another page#
The navigation changed in v0.7.0. Old links redirect: Proposals opens Approvals, Requests; Analytics opens Activity, Analytics; Connectors opens Tools, Connectors. See the release notes.
I lost my authenticator app#
On the two-step step of the sign-in, choose Use a recovery code and enter one of your recovery codes. Each recovery code works once. Then, under Settings, Account, Two-step verification, make New recovery codes, or Turn off two-step verification and set it up again on your new device. Without the app and without a recovery code, contact support@bastn.ai. A password reset by email does not turn two-step verification off. See Two-step verification.
FAQ#
Does bastn see my tool call arguments?#
bastn checks the arguments to apply policy, and shows held calls' arguments to the admins who decide them. The audit log stores keyed digests of arguments and results, not their content. See Audit log.
Where do my API credentials live?#
For tools behind a connector, on your host. The connector adds them to requests there and never sends them to bastn. See Connectors.
Which systems does the connector run on?#
Linux on amd64 and arm64, and the Docker image. There are no native macOS or Windows builds.
How do I get access?#
bastn is invite-only during the beta. Request access on bastn.ai.