Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

open-swe

БесплатноБез исполняемых скриптовНе проверен

Open SWE is LangChain's open-source asynchronous coding agent: a self-hosted service that takes tasks from a dashboard, GitHub, Slack or Linear, works in an…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Open SWE

Overview

Open SWE (by LangChain, MIT) is an application you deploy, not a library you import. One deployment contains a LangGraph server with the agent graphs, a FastAPI app for webhooks and the dashboard API, and a web dashboard. It is built on Deep Agents and LangGraph.

Dashboard task · @openswe on a GitHub issue or PR · Slack mention · Linear comment
    ↓
Plan and investigate → implement in a per-thread sandbox → validate → open a PR
    ↓
Review, CI monitoring (/baby-sit), follow-up messages in the same thread

There is no open-swe package on PyPI and no SWEAgent class: you clone the repository, configure it with environment variables and run it. The project is under active development, expects breaking changes and does not accept external issues or contributions.

Instructions

Step 1: Clone and install

git clone https://github.com/langchain-ai/open-swe.git
cd open-swe
uv venv
source .venv/bin/activate
uv sync --all-extras          # also installs the LangGraph CLI

Step 2: Create a GitHub App

Open SWE authenticates as a GitHub App to clone, push, open pull requests and sign users in. In GitHub → Settings → Developer settings → GitHub Apps → New GitHub App:

  • Callback URL: http://localhost:2024/dashboard/api/auth/callback (for a deployment, the deployment URL with the same path)
  • Webhook URL: the public URL plus /webhooks/github (locally, the ngrok domain from Step 5); Webhook secret: output of openssl rand -hex 32
  • Repository permissions: Contents, Pull requests, Issues, Checks and Workflows read & write; Commit statuses and Metadata read-only
  • Organization permissions: Members read-only (needed when ALLOWED_GITHUB_ORGS is set)
  • Events: Issue comment, Pull request review, Pull request review comment, Check run, Check suite, Workflow run

Install the App on the repositories the agent may work in. The number at the end of the installation URL is GITHUB_APP_INSTALLATION_ID.

Step 3: Write .env in the repository root

LANGSMITH_API_KEY=""            # tracing, sandboxes and trace links
LANGSMITH_TRACING="true"
ANTHROPIC_API_KEY=""            # any one provider key: OPENAI_API_KEY, GOOGLE_API_KEY, ...

GITHUB_APP_ID=""
GITHUB_APP_CLIENT_ID=""
GITHUB_APP_CLIENT_SECRET=""
GITHUB_APP_PRIVATE_KEY=""       # the whole .pem as one double-quoted line, \n between PEM lines
GITHUB_WEBHOOK_SECRET=""
GITHUB_APP_INSTALLATION_ID=""
ALLOWED_GITHUB_USERS="mlindqvist"   # or ALLOWED_GITHUB_ORGS; one of the two is required

TOKEN_ENCRYPTION_KEY=""         # openssl rand -base64 32
DASHBOARD_JWT_SECRET=""         # openssl rand -hex 32
CONFIGURED_ADMINS="mlindqvist"  # GitHub logins or emails that see the Admin pages

Slack is optional locally; add SLACK_BOT_TOKEN, SLACK_SIGNING_SECRET, SLACK_BOT_USER_ID and SLACK_BOT_USERNAME after creating a Slack app from the manifest in docs/INSTALLATION.md. agent/config.py lists every variable with its default.

Step 4: Run

make build-dashboard    # pnpm install + build of the web UI
make dev                # langgraph dev on http://localhost:2024; starts a postgres:16 container first

Open http://localhost:2024, sign in with GitHub, set Admin → Global defaults → Default Repository, then start a task from the composer. GET /ok is the health check. After editing .env, restart make dev — it reloads on code changes only.

Step 5: Receive webhooks through a tunnel

GitHub and Slack cannot reach localhost. Claim a static ngrok domain and run:

make tunnel NGROK_DOMAIN=swift-otter-openswe.ngrok-free.dev

make tunnel applies a traffic policy that exposes only /webhooks/*. Keep it that way: under langgraph dev the LangGraph API (/threads, /runs, /assistants, /store) has no authentication.

Step 6: Start work

Surface How
Dashboard Type the task in the composer
GitHub Comment @openswe plus the request on an issue or pull request
Slack Mention the bot in a channel, or /oswe with a request for a private answer
Linear Comment @openswe on an issue (needs the Linear webhook and MCP connection)

Mention handles default to @openswe, @open-swe and @openswe-dev; change them with OPEN_SWE_MENTION_TAGS. A GitHub commenter must have signed in to the dashboard once, otherwise the comment is skipped.

Step 7: Customize

LLM_MODEL_ID="anthropic:claude-opus-5-5"    # provider:model
LLM_REASONING_EFFORT="high"                 # low | medium | high | max
SANDBOX_TYPE="langsmith"                    # langsmith (default) | daytona | runloop | e2b | modal | local
DEFAULT_PROMPT_PATH="/srv/open-swe/org-prompt.md"   # org-wide instructions for every run
  • Put an AGENTS.md in the root of a target repository for repository-specific conventions; the agent reads it from the sandbox at startup.
  • Third-party sandbox providers need their extra, for example `
Полный SKILL.md на GitHub

Установить open-swe в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл open-swe?

Open SWE is LangChain's open-source asynchronous coding agent: a self-hosted service that takes tasks from a dashboard, GitHub, Slack or Linear, works in an isolated sandbox and opens pull requests. Use when a user asks to deploy or run Open SWE, set up its GitHub App and Slack bot, trigger it with @openswe, have it review pull requests, call it from CI with the oswe CLI, or customize its model, sandbox and prompts.

Как установить скилл open-swe?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл open-swe запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить open-swe с