Prerequisites
- OneCLI running locally or via Docker
- Bitwarden Agent Access CLI (
aac) installed - A Bitwarden account with credentials stored as login items
Setup
Start the Bitwarden listener
Run the This prints a pairing code (two 64-character hex strings joined by
aac CLI to generate a pairing code:_). Keep this terminal open.Pair in the dashboard
Open the OneCLI dashboard > Secrets page > Bitwarden Vault card. Paste the pairing code and click Connect Vault.The gateway establishes an encrypted Noise protocol session with your Bitwarden app through a WebSocket relay.
How credentials are matched
The gateway asks Bitwarden for credentials by domain. Bitwarden matches against the URI field of your vault items and returns the password field. The injection rule depends on the target host:| Host | Header | Format |
|---|---|---|
api.anthropic.com | x-api-key | Raw value |
| All other hosts | Authorization | Bearer <value> |
Session behavior
Sessions are restored automatically after a gateway restart. The first credential request triggers a reconnection using the stored session state from the database. There is no startup delay. Sessions unused for 30 minutes are evicted from memory. The next request restores them automatically. If a session can’t be restored (e.g. the Bitwarden app was reinstalled), disconnect in the dashboard and pair again with a new code.Configuration
| Variable | Default | Description |
|---|---|---|
BITWARDEN_PROXY_URL | wss://rat1.lesspassword.dev | WebSocket relay for the Bitwarden Remote Access protocol |
Troubleshooting
Pairing fails with 'PSK pairing failed'
Pairing fails with 'PSK pairing failed'
Make sure the
aac listen --psk terminal is still running and the pairing code hasn’t expired. Generate a fresh code and try again.Credentials not injected after gateway restart
Credentials not injected after gateway restart
The first request after restart triggers a lazy session restore. If it fails, the session state may be stale. Disconnect in the dashboard and re-pair.
'unknown device' prompt on the aac side
'unknown device' prompt on the aac side
The
aac CLI may prompt you to approve credential requests from the gateway. Press y to allow. This is a security feature of the Bitwarden Agent Access protocol.