Quick Start
SWEny is one tool with multiple surfaces. Install it once, then pick the way that fits your workflow.
Install
Section titled “Install”npm install -g @sweny-ai/coreEvery command below uses the installed sweny binary. Try it with no credentials beyond your Claude login:
sweny new --template explain-repo --yessweny workflow run .sweny/workflows/explain-repo.ymlAdd your API key
Section titled “Add your API key”SWEny runs nodes on Claude Code by default (Codex, pi and ACP agents are covered in Agents and policies). For Claude Code you need an Anthropic API key, OAuth token, or an authenticated Claude Code instance.
# .env (gitignored)ANTHROPIC_API_KEY=sk-ant-...Or use a Claude subscription token (CLAUDE_CODE_OAUTH_TOKEN) for flat-rate billing. The CLI auto-loads .env at startup.
Choose your surface
Section titled “Choose your surface”Claude Code Plugin — use SWEny inside Claude Code
Section titled “Claude Code Plugin — use SWEny inside Claude Code”If you use Claude Code, install the plugin and get 9 slash commands, MCP tools, and a startup hook:
/plugin marketplace add swenyai/sweny/plugin install sweny@sweny-officialThen use /sweny:triage to investigate production alerts, /sweny:implement ENG-123 to fix an issue, /sweny:e2e-run to run browser tests, or /sweny:new to create a workflow, all without leaving your conversation.
Full plugin guide — all skills, MCP tools, hooks, and agent details.
CLI — build and run workflows from your terminal
Section titled “CLI — build and run workflows from your terminal”The fastest way to get things done. Describe a task, get a workflow, run it.
# Create a workflow from a descriptionsweny workflow create "scan the codebase for security anti-patterns \ and create tickets for critical findings"
# Refine itsweny workflow edit .sweny/workflows/security_scan.yml \ "add a quality gate that rejects vague findings"
# Run itsweny workflow run .sweny/workflows/security_scan.ymlYou can also run the built-in workflows directly:
sweny triage --dry-run # investigate production errorssweny implement ENG-123 # fix a tracked issue and open a PROr generate AI-driven browser tests for any web app:
sweny new e2e # wizard generates test workflowssweny workflow run # AI agent drives a real browserFull CLI guide — commands, configuration, and real-world examples. E2E testing guide — browser test generation and execution.
GitHub Action — deploy workflows to CI
Section titled “GitHub Action — deploy workflows to CI”Put workflows on a schedule. SWEny monitors your observability platform, triages errors, and opens fix PRs — automatically.
- uses: swenyai/triage@v1 with: claude-oauth-token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} observability-provider: sentry sentry-auth-token: ${{ secrets.SENTRY_AUTH_TOKEN }} sentry-org: my-org sentry-project: my-projectThree secrets. Push the file, trigger it from the Actions tab, and check the summary. Use swenyai/sweny@v5 to run custom workflow YAMLs, or swenyai/e2e@v1 for browser tests.
Full Action guide — setup, inputs, scheduling, and service maps.
Studio — visualize and monitor workflows
Section titled “Studio — visualize and monitor workflows”A visual DAG editor built on React Flow. Design workflows by dragging nodes. Live mode connects to a WebSocket or SSE event URL you provide and overlays node state as events arrive.
# From a repo checkoutnpm run dev -w @sweny-ai/studioFull Studio guide — editor, embedding, and live mode.
What’s next?
Section titled “What’s next?”- Core Concepts — understand workflows, nodes, edges, and skills
- CLI Examples — real-world workflows from one-liners to complex pipelines
- End-to-End Walkthrough — follow a real triage run from error spike to fix PR