Weave for Agents is in public preview. Features, APIs, and the Agents view UI may change before general availability.
Prerequisites
- Node.js v18 or later (includes
npm). - Claude Code installed and authenticated.
- A W&B account and API key set as a
WANDB_API_KEYenvironment variable. - A Weave project (
[YOUR-TEAM]/[YOUR-PROJECT]) to receive traces.
Install the plugin
1
Install the CLI:
2
Run the installer:
- Creates
~/.weave-claude-code/settings.json. - Registers the plugin in Claude Code.
- Prompts for your Weave project (
[YOUR-TEAM]/[YOUR-PROJECT]) and W&B API key if they aren’t already set.
WEAVE_PROJECT and WANDB_API_KEY from the environment and warns if either is missing.3
Start Claude Code:
View Claude Code traces in Weave
After running at least one Claude Code session, open your project in the Weave UI:- Navigate to https://wandb.ai and select your project.
- In the sidebar menu, select Agents to view all agent conversations saved for your project.
- Select a conversation to inspect the full session tree.
Configure the plugin
Weave skills
After installation, three Weave-specific skills are available directly inside any Claude Code session.
You can use the
weave:weave-config skill to set Weave values from within Claude Code:
Check plugin status
You can use these CLI commands to check plugin status or troubleshoot issues:✓ (OK), ✗ (action needed), or - (not yet active but not an error).
If sessions aren’t appearing in Weave, check the daemon log:
~/.weave-claude-code/logs/daemon.log.
W&B Dedicated Cloud or self-hosted instances
If you use W&B Dedicated Cloud or a self-hosted instance, setWANDB_BASE_URL before launching Claude Code:
WANDB_BASE_URL at startup. If the daemon is already running when you set the variable, it won’t pick up the change. To restart the daemon:
- Shut down the daemon:
- Set
WANDB_BASE_URL, or runwandb login --host https://[YOUR-INSTANCE].wandb.ioto persist the setting across sessions. - Launch Claude Code again. The daemon restarts automatically and picks up the correct URL.
Uninstall
--keep-logs to preserve the log directory.