How to add workspace secrets
In the LangSmith UI, ensure that your Anthropic API key is set as a workspace secret.- Navigate to Settings and then move to the Secrets tab.
- Select Add secret and enter the
ANTHROPIC_API_KEYand your API key as the Value. - Select Save secret.
When adding workspace secrets in the LangSmith UI, make sure the secret keys match the environment variable names expected by your model provider.
Required model key
ANTHROPIC_API_KEY: Required for Agent Builder models. The agent graphs load this key from workspace secrets for inference.
Optional tool keys
Add keys for any tools you enable. These are read from workspace secrets at runtime.EXA_API_KEY: Required for Exa search tools (general web and LinkedIn profile search).TAVILY_API_KEY: Required for Tavily web search.TWITTER_API_KEYandTWITTER_API_KEY_SECRET: Required for Twitter/X read operations (app‑only bearer). Posting/media upload is not enabled.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.