Prerequisites
- Access to Claude Cowork in the Claude desktop app.
- A LangSmith account.
Install the plugin
Cowork installs plugins from your claude.ai account. To install the plugin for yourself:- Go to Customize > Plugins on claude.ai.
- Add
langchain-ai/langsmith-claude-code-pluginsorhttps://github.com/langchain-ai/langsmith-claude-code-pluginsas a marketplace. - Install the
langsmith-tracingplugin from that marketplace.
Sign in
Sign in once with the LangSmith CLI. See Install the LangSmith CLI if you do not have it yet.profile in your config file to the one the plugin should use. Your own api_key ignores this setting, but a generic LANGSMITH_API_KEY is not used as a fallback while profile is set.
To use an API key instead, add it to ~/.claude/langsmith.json, the same file Claude Code reads:
- The plugin’s own key from
api_keyorCC_LANGSMITH_API_KEY. - Your
langsmith auth loginsign-in. - A generic
LANGSMITH_API_KEYfrom your environment.
Turn on tracing
Tracing is off until you turn it on in~/.claude/langsmith.json, unless your admin already turned it on with a managed file. Send traces to an agent with agent_id:
project:
agent_id wins.
Start a Cowork task and open your agent or project in LangSmith. Skill calls record which skill ran, so you can filter traces by skill.
Deploy to your organization
Admins can install the plugin for everyone and control how it traces from one place.Install for everyone
Organization owners can add the plugin to every member’s claude.ai account, so it reaches Cowork and Claude Code together. For the setup, see Choose a rollout route.Lock settings
An admin can lock tracing settings for every user with a managed file at~/.langsmith-plugins/managed.json in each user’s home folder. The Claude Code, Cursor, and Codex plugins all read this file, and its settings override the user’s own config files and environment variables.
- Root owns the file and its folder.
- No other user can write to either.
- Neither is a symlink.
project also stops users from adding their own replicas or sending traces to an agent with agent_id.
Admins usually install the file on each machine with a mobile device management (MDM) tool such as Jamf or Microsoft Intune. For every setting you can lock, see the plugin settings guide.
Example setup script
Example setup script
Run this as root for each user, with On Linux, use
USER_HOME set to that user’s home folder:root:root instead of root:wheel. For the full script, see Set it up on macOS.Require a working sign-in
Strict auth blocks every prompt until the user’s sign-in or key works, so no session goes untraced. It is off by default and has no effect while tracing is off. To turn it on for everyone, setstrict_auth to true in the managed file.
Hide a conversation
Run/langsmith-tracing:mute in a Cowork task to keep its content out of LangSmith, and /langsmith-tracing:unmute to turn it back on. To mute every task by default, set defaultMuted to true.
Secret redaction
The plugin strips secrets on your machine before anything is uploaded, so they never reach LangSmith or a replica. Redaction is on by default. It catches provider API keys, JSON Web Tokens, and PEM private keys, along with common patterns such asAPI_KEY=<value> or a password in a URL. Each match is replaced with [SECRET_DETECTED]. For the full rule list, see Redact secrets from traces.
Redaction only matches known credential shapes, so treat it as a safety net rather than a guarantee. Run names, tags, and attachments skip it, and a redacted trace still holds your prompts and file contents. Limit who can read the tracing project.
Settings
Cowork uses the same settings as Claude Code. For the main ones, see Settings. For every setting, see the plugin settings.Connect these docs to your agent of choice via MCP for real-time answers.

