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★ 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 ofopenssl 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_ORGSis 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.mdin 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 `
Установить open-swe в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic