Create a session
Create a session and start an agent with its token.
Revoke a session
End a session before it expires so its agent stops getting credentials.
Sessions on behalf of users
Let a machine identity create sessions on behalf of users, so each session uses the personal values of the user it’s for.
Inline services
Services and credentials that you configure when you create a session.
Session statuses
The Sessions page shows each session as Active, Revoked, or Expired. It keeps expired and revoked sessions, so you can still see the access an agent had during each session:
Label a session and add metadata
A label is a short description of what a session is for, such asnightly deploy or support ticket triage. If one identity creates many sessions, you can use the labels to tell the sessions apart on the Sessions page and to search for them. A label can be up to 128 characters, and can’t contain line breaks, tabs, or invisible characters such as zero-width spaces.
Metadata is a set of keys and values that record which run a session belongs to, such as the run ID, the ticket, or the user or Slack channel the agent works for. A session can have up to 20 metadata keys. A key can be up to 255 characters and a value up to 1020, and neither can contain line breaks, tabs, or invisible characters. A value can’t be empty, and a key can’t contain =.
To add a label and metadata when you create a session:
- Dashboard
- CLI
- Python SDK
In the Create Session dialog, on the Create Now tab, enter a Label. To add metadata, select Add Metadata, then enter a key and a value. Select Add Metadata again for each other key.
- In your Agent Vault project, go to Sessions, open the session’s menu, and select Edit Session
- From an agent or a script, call the Update session endpoint, for example to record what the agent is working on (if you send
metadata, it replaces all of the session’s metadata)

- Python SDK
- Node SDK
View session logs
Session logs record every request an agent makes during a session. To view them, go to Sessions in your Agent Vault project and select View Session Logs on the session’s row. You can filter and search the requests, and while the session is active, new logs keep appearing.
Access changes
You choose a session’s services and skills when you create it, and you can’t change them afterwards. However, the proxy checks each session’s access again once every poll interval (60 seconds by default). Here’s how common access changes affect a session:- If someone no longer has any grant on an access bundle, directly or through a group, their sessions for that bundle stop getting credentials
- If someone still has another grant on the bundle, such as through a group, revoking one grant doesn’t affect their sessions
- If you delete an access bundle, every session scoped to it stops getting credentials (the session still lists the bundle’s name)
- If you remove a service from an access bundle, the bundle’s sessions stop getting that service’s credential
- If you delete a service, every session that uses it stops getting the service’s credential
- If someone loses access to a service they picked for a session, the session stops getting that service’s credential
- If you remove someone from the project, the proxy refuses every request on their sessions
- If the user or machine identity that created a session loses the Admin role in the project, the session stops getting credentials for its inline services
- If someone loses access to a skill they picked for a session, agents that start with the session afterwards don’t get the skill
- If you delete a skill, agents that start afterwards don’t get it
If a session stops getting credentials because of a lost grant, a deleted bundle, or a lost Admin role, the proxy still forwards the agent’s requests, without credentials. The proxy’s traffic policy sets which hosts those requests can still reach.