Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Weights & Biases CLI

$ wandb Official Med Risk
Weights & Biases · AI & Media · MIT · macos / linux / windows

The wandb CLI manages Weights & Biases authentication (login), toggles offline logging (wandb offline), syncs local run directories (wandb sync --yes --dry-run), and pulls/inspects artifacts (wandb artifact).

FCRS-1.0 Score
78 /100
Good
Medium Confidence
Zero-Friction Install
pip install wandb
CLI vs MCP Decision CLI Only

Companion CLI for local ./wandb run syncing (wandb sync --dry-run) and status checks; Python SDK handles run logging.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Supports status, sync --dry-run, sync --yes, and WANDB_API_KEY env auth, though lacks native --json output across CLI subcommands and sync prompts without --yes.

  • Supports sync --dry-run and --yes, but lacks --json formatting
Trust & Safety 20 / 25

Writing API keys to ~/.netrc carries standard local secret hygiene risks; sync uploads experiment artifacts/logs to remote W&B servers.

  • Writes plaintext API key into ~/.netrc on wandb login
Setup & Portability 13 / 15

Available via pip and uvx across macOS, Linux, and Windows, though pulls a moderately heavy Python SDK dependency tree.

  • Distributed via PyPI (wandb) with full Python SDK
Utility & Efficiency 12 / 15

Essential companion for toggling offline mode (wandb offline), inspecting status, and syncing disconnected training runs.

  • Handles offline run recovery (wandb sync) and artifact transfers
Maintenance & Lineage 8 / 10

Official Weights & Biases repository (wandb/wandb) under MIT license.

  • Official wandb/wandb repository
Docs & Verifiability 7 / 10

Documented CLI reference at docs.wandb.ai/ref/cli/.

  • Official CLI reference at docs.wandb.ai/ref/cli

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads WANDB_API_KEY env var or writes the API key into ~/.netrc; offline settings reside in ./wandb/settings.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source Python CLI; W&B Cloud has free personal/academic tiers and paid team plans (self-hostable).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# wandb CLI Agent Rules
- Always pass `--dry-run` before `wandb sync` and use `--yes` (`-y`) with explicit run paths so `wandb sync` never prompts interactively.
- Set `WANDB_MODE=offline` during local test runs to avoid polluting team dashboards.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check W&B authentication and active settings
wandb status

Prints active entity, project, base URL, and login state without exposing raw keys.

Preview offline runs eligible for upload
wandb sync --dry-run ./wandb

Lists local offline run directories that would be synced (--dry-run) without uploading.

Controlled Writes & Previews

Upload offline W&B runs non-interactively
wandb sync --yes ./wandb/offline-run-*

Pushes saved offline runs to W&B without interactive selection prompts (--yes).

Strengths for Agents

  • + wandb sync --dry-run and --yes allow safe inspection and upload of offline training runs.
  • + WANDB_API_KEY and WANDB_MODE=offline work cleanly in CI/agent environments.

Caveats & Pitfalls

  • ! CLI subcommands emit human-formatted text rather than --json.
  • ! Bare wandb sync and wandb login prompt interactively unless --yes or WANDB_API_KEY is provided.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI