Agent identity ↗
noOriginal Documentation
Documentation Index#
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt Use this file to discover all available pages before exploring further.
Choose whether your Fleet agent authenticates with its own credentials or with each user’s credentials.
Agent identity controls whose credentials the agent uses when it interacts with apps and services.
Once an agent identity is set, it cannot be changed.
Fixed credentials (“Claws”)#
The agent always authenticates with the same API keys and OAuth tokens, regardless of who is interacting with it.
Use fixed credentials when:
- The agent operates as a shared service (for example, a team Slack bot or a daily briefing agent).
- You want a single set of authenticated accounts for all users.
- The agent needs to run on channels or schedules, which require fixed credentials.
With fixed credentials, all actions the agent takes (sending emails, posting messages, reading calendars) use the account that the agent owner connected during setup.
User credentials (“Assistants”)#
The agent authenticates with the API keys and OAuth tokens of the user interacting with it, acting on the user’s behalf.
Use user credentials when:
- Each user should act through their own accounts (for example, an email assistant that reads and sends from the user’s own inbox).
- You need per-user access control so the agent only sees what that user is authorized to see.
- Audit trails need to reflect which user performed each action.
With user credentials, each user authenticates individually the first time they interact with the agent. The agent uses that user’s tokens for all subsequent actions in their threads.
Set agent identity#
To set the identity for an agent:
- In the LangSmith UI, navigate to the agent you want to edit.
- Click
Edit in the top right corner. - Click Set identity and select the identity you want to use.
- Click Save.
Edit this page on GitHub or file an issue.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.