# session_required

Source: https://botpassword.com/docs/outcomes/session_required

No live agent session. The call did not come from inside a live agent session: none was presented, it expired, or it is malformed.

**Fix the session or vault.** MCP sends it with `isError: true`.

## What it means

The call did not come from inside a live agent session: none was presented, it expired, or it is malformed. Every intent except `status` needs one. The daemon finds the session from the calling process's ancestry, so a harness started outside `bpw agent run` has none.

## What the agent should do

Ask the person to approve this agent in the BotPassword app if it is listed there, or to start the agent with `bpw agent run --` followed by the agent's own command, then try again.

## What the person should do

Run your agent with `bpw agent run -- <harness>` (for example `bpw agent run -- claude`). See `bpw session list` for live sessions.

## Which intents return it

*Status: `change_password` is planned, not built yet; `rotate` is partly built; `capture_secret` is planned, not built yet; `generate_password` is planned, not built yet.*

- [`list_credentials`](/docs/intents/list_credentials)
- [`request_access`](/docs/intents/request_access)
- [`run_with`](/docs/intents/run_with)
- [`http_request`](/docs/intents/http_request)
- [`cli_login`](/docs/intents/cli_login)
- [`sign_in`](/docs/intents/sign_in)
- [`fill_totp`](/docs/intents/fill_totp)
- [`change_password`](/docs/intents/change_password) (planned, not built yet)
- [`rotate`](/docs/intents/rotate) (partly built)
- [`capture_secret`](/docs/intents/capture_secret) (planned, not built yet)
- [`store_secret`](/docs/intents/store_secret)
- [`generate_password`](/docs/intents/generate_password) (planned, not built yet)

*Status: `change_password` is planned, not built yet; `rotate` is partly built; `capture_secret` is planned, not built yet; `generate_password` is planned, not built yet.*

## How it looks

```json
{
  "structuredContent": {
    "outcome": "session_required"
  },
  "isError": true
}
```

Intent-specific fields come alongside it when the intent has them.

## Related outcomes

- [`vault_locked`](/docs/outcomes/vault_locked): The vault is locked
- [All outcomes](/docs/outcomes) and [Typed outcomes and errors](/docs/typed-outcomes)
