Skip to content

Quick Start

SWEny is one tool with multiple surfaces. Install it once, then pick the way that fits your workflow.

Terminal window
npm install -g @sweny-ai/core

Every command below uses the installed sweny binary. Try it with no credentials beyond your Claude login:

Terminal window
sweny new --template explain-repo --yes
sweny workflow run .sweny/workflows/explain-repo.yml

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.

Terminal window
# .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.

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-official

Then 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.

Terminal window
# Create a workflow from a description
sweny workflow create "scan the codebase for security anti-patterns \
and create tickets for critical findings"
# Refine it
sweny workflow edit .sweny/workflows/security_scan.yml \
"add a quality gate that rejects vague findings"
# Run it
sweny workflow run .sweny/workflows/security_scan.yml

You can also run the built-in workflows directly:

Terminal window
sweny triage --dry-run # investigate production errors
sweny implement ENG-123 # fix a tracked issue and open a PR

Or generate AI-driven browser tests for any web app:

Terminal window
sweny new e2e # wizard generates test workflows
sweny workflow run # AI agent drives a real browser

Full CLI guide — commands, configuration, and real-world examples. E2E testing guide — browser test generation and execution.

Put workflows on a schedule. SWEny monitors your observability platform, triages errors, and opens fix PRs — automatically.

.github/workflows/sweny-triage.yml
- 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-project

Three 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.

Terminal window
# From a repo checkout
npm run dev -w @sweny-ai/studio

Full Studio guide — editor, embedding, and live mode.