Skip to content

Using Skill in AI Agents

TIP

SwanLab Skill requires SDK version >= 0.8. Make sure your SDK meets this requirement.

SwanLab-Skill enables AI agents like Claude Code , Codex and OpenCode to automatically log experiment data and query/analyze experiment results on the SwanLab platform.

Installation

Install with a single command:

bash
npx skills add SwanHubX/SwanLab-Skill -y -g
bash
bunx skills add SwanHubX/SwanLab-Skill -y -g

npx skills is a utility for installing skills into AI agent CLIs. Use -g for a global install. See the skills docs for details.

You can also install via SkillHub or ModelScope:

⚠️ Note: Before using, make sure you have saved your API Key via swanlab login or the SWANLAB_API_KEY environment variable.