본문으로 건너뛰기

배포

이 페이지는 에이전트가 영어 원문을 번역하고 검토했습니다. Zhehan은 영어와 중국어를 읽습니다. 교정을 도와주시면 감사하겠습니다. 교정 돕기 번역 문제 신고

기존 배포를 업데이트하려면 업데이트 안내를 따르세요.

내 컴퓨터에서 실행

설치를 따르세요.

SwB 배포

Claude Code나 Codex 같은 코딩 에이전트에 이 프롬프트를 붙여 넣으세요. 에이전트가 SwB 설정을 도와줍니다.

Read the setup guide at https://swb.one/docs/deploy.

Help me run SwB. Use your terminal for commands you can run. Ask me to make choices and to take actions that need my account.

Send a `User-Agent` header that names your app in each HTTP request to SwB.

Ask me to choose where to run SwB. Offer this computer, Render, Railway, Fly.io, Koyeb or my server with Docker.

## This computer

For a source build, use **Build from source**. Install uv using the [official guide](https://docs.astral.sh/uv/getting-started/installation/). SwB needs Python 3.12 or later. The command below uses Python 3.12.

Choose an empty folder with me. Check that port 8870 is free. To choose another port, use a command such as `SWB_PORT=8871 uvx --python 3.12 swb.one up`.

If your terminal is on my SwB computer, run this in the chosen folder. Keep SwB running.

```bash
(umask 077; log=$(mktemp .swb-startup.XXXXXXXX) || exit
printf 'Private startup log: %s/%s\n' "$PWD" "$log"
uvx --python 3.12 swb.one up > "$log")
```

Use a fresh file for each start. Use file mode `0600` for each private link file. Use equivalent protection in other shells. Give me the file path.

Tell me how to read the link in my private terminal. Give me this command with the actual file path.

```bash
grep -F '/login#t=' '/path/to/.swb-startup.ABC12345'
```

If I start SwB in my terminal, give me the `uvx` command by itself. SwB prints the first link when it starts.

Ask me to open the `/login#t=` link within five minutes. Ask me to delete any private link file after sign-in.

For later sign-ins, ask me to use a passkey or get a fresh link. To get a link, run `uvx --python 3.12 swb.one login-link` from the same folder in another terminal. Save its output to a new private file. If I run the command, ask me to open the link there. Keep links out of chat and shared output.

Use `http://localhost:8870/mcp` with the chosen port.

## Build from source

Use the release branch for a source build. Run these commands on the computer you will use to build or deploy SwB.

```bash
git clone --branch release/1.0 https://github.com/ZhehanZhang/SwB.git
cd SwB
```

To run SwB on this computer, follow https://swb.one/docs/deploy#docker-compose. Start with the command that copies `.env.example`.

## Render and Railway

Read the deployment guide at https://github.com/ZhehanZhang/SwB/tree/release/1.0/deploy. Guide me through the Render Blueprint or Railway service setup. Use `release/1.0` as the source branch. Use one instance with one 1 GB volume at `/data`. On Render, use a Hobby workspace and the 512 MB service. On Railway, use the Hobby plan and set the variables from the guide, including a private `SWB_SETUP_CODE`. Ask me to copy `SWB_SETUP_CODE` from the service settings. Keep the code out of chat and logs.

## Fly.io, Koyeb and Docker

Run these commands in the `release/1.0` checkout.

For Fly.io, ask for an app name. Check the Fly CLI and Python 3.11 or later, or uv. Run `fly auth whoami`. If needed, run `fly auth login` and wait for me to sign in. Use my personal organization for the Fly.io Free plan. Run `sh deploy/fly.sh my-swb` with my app name. Stop if the script reports a resource outside the supported setup.

For Koyeb, ask for an app name. Check the Koyeb CLI and my sign-in. Run `sh deploy/koyeb.sh my-swb release/1.0` with my app name.

For my own server, ask for my domain. Ask me to point its DNS at the server. Ask me to open ports 80 and 443. Wait for me to confirm. Run `sh deploy/compose/start.sh swb.example.com` on the server with my domain.

Keep the setup code in its private file. Give me the file path. Fly.io uses `.env.swb-setup-fly-my-swb`. Koyeb uses `.env.swb-setup-koyeb-my-swb`. Docker uses `deploy/compose/.env`. Ask me to copy `SWB_SETUP_CODE` from that file.

## Sign in on a server

Wait for SwB to start. Give me the public URL and the sign-in page address from the log. Add `/mcp` to the public URL for the MCP address.

Ask me to paste the code into **Setup code** on the sign-in page. The code works once. Ask me to add a passkey to sign in again. For Fly.io or Koyeb, ask me to delete the private file after sign-in.

## Connect my first agent

Ask me where the app runs. To let the first agent set up other apps, give it owner access. For a local owner client, follow https://swb.one/prompts/mcp-client.md. For a coding agent, use https://swb.one/docs/setup/coding-agent.

For a hosted app, have me approve its OAuth sign-in to give it owner access. Use a public HTTPS address. If SwB is local, offer a [public address](https://swb.one/docs/first-run#get-a-public-address) or a hosted deployment. For Claude, use https://swb.one/prompts/claude.md. For ChatGPT, use https://swb.one/prompts/chatgpt.md. For Grok, use https://swb.one/prompts/grok.md.

Once the first app connects, ask me to paste https://swb.one/prompts/coordinator.md into that app. If it uses a paired key, have it give me the matching `swb connect` command for each owner-only connection.

If you keep your own memory, set up memory sync as described at https://swb.one/docs/memory.

내 서버에서 실행

Docker Compose

Docker Compose 2.24 이상을 설치하세요. Docker Compose는 컨테이너 안에서 SwB을 실행합니다. 데이터 폴더를 소유한 사용자로 이 명령을 실행하세요.

git clone --branch release/1.0 https://github.com/ZhehanZhang/SwB.git
cd SwB
(umask 077; cp .env.example .env)
{
  printf 'SWB_UID=%s\n' "$(id -u)"
  printf 'SWB_KEY_OWNER='
  openssl rand -hex 32
} >> .env
printf 'SWB_PUBLIC_URL=http://localhost:8870\n' >> .env
mkdir -p data
docker compose up -d --build --wait
curl -fsS http://127.0.0.1:8870/healthz
docker compose exec -T switchboard swb login-link --url http://127.0.0.1:8000

원격 서버라면 서버의 8870 포트를 내 컴퓨터의 8870 포트로 포워딩하세요. 일회용 로그인 링크를 5분 안에 여세요. 링크는 비공개로 유지하세요.

브라우저는 로그인에 http://localhost:8870을 사용합니다. 컨테이너 안의 명령은 8000 포트를 사용합니다. Compose는 데이터를 ./data에 저장합니다. .env를 바꾼 뒤에는 docker compose up -d를 실행하세요.

로그인 전에 /healthz에 요청하면 status와 version을 돌려받습니다. 전체 상태 정보는 소유자 세션이나 소유자 키로 확인하세요.

Cloudflare Tunnel

터널은 서버를 Cloudflare에 연결하고 SwB에 공개 HTTPS 주소를 줍니다. 터널을 설정하려면 Cloudflare를 따르세요.

클라우드에서 실행

/data에 디스크를 마운트한 SwB 인스턴스 하나를 사용하세요. 이 디스크는 인스턴스가 다시 시작해도 데이터를 보존합니다. 플랫폼 템플릿과 스크립트는 배포 가이드에서 찾으세요.

원클릭 배포

Fly.io

Docker Compose 예제의 SwB 파일을 사용하세요. Python 3.11 이상을 설치하거나 uv를 설치하세요. Fly.io 명령줄 도구를 설치하세요. Fly.io에 로그인하세요.

결제 카드를 등록하면 Fly.io Free plan에서 매달 5달러 상당의 사용량을 받습니다. 이 플랜에는 개인 조직을 사용하세요. 5달러를 모두 쓰면 Fly는 그달 전체를 표준 요금으로 청구합니다. 이 구성은 Ashburn에서 30일에 약 3.84달러가 듭니다. 데이터 전송 요금은 별도입니다.

SwB 폴더에서 sh deploy/fly.sh my-swb를 실행하세요. my-swb는 고유한 앱 이름으로 바꾸세요. 이 스크립트는 fly deploy --ha=false로 Machine 하나를 시작합니다. 스크립트는 Machine, 볼륨, 주소를 확인합니다.

앱의 로그인 페이지를 여세요. SwB 폴더의 .env.swb-setup-fly-my-swb에서 SWB_SETUP_CODE를 복사하세요. 그 값을 Setup code에 입력하세요. 로그인한 뒤 이 파일을 삭제하세요.

요금 정보는 현재 요금을 참고하세요.

Render

Render Blueprint를 여세요. Blueprint는 유료 웹 서비스와 1 GB 디스크를 만듭니다. 서비스에서 Environment를 여세요. SWB_SETUP_CODE를 복사하세요.

Railway

Railway의 SwB 템플릿으로 배포하세요. 레플리카는 하나로 유지하세요. /data에 1 GB 볼륨 하나를 마운트하세요.

SwB을 항상 실행해 두려면 Hobby 플랜을 사용하세요. Hobby 플랜은 월 5달러이며 5달러 상당의 사용량이 포함됩니다.

Free 플랜은 0.5 GB 볼륨을 지원합니다. Free 서비스는 유휴 상태일 때 절전 모드로 전환됩니다. 이 플랜에는 매달 1달러 상당의 사용량이 포함됩니다. 이 금액으로 약 100 MB의 RAM을 24시간 내내 쓸 수 있습니다. 테스트에서 SwB은 유휴 상태일 때 RAM을 약 107 MiB 사용했습니다.

로그인

서비스 로그에 나온 로그인 주소를 여세요. 서비스 설정이나 배포 명령이 알려 준 비공개 파일에서 SWB_SETUP_CODE를 복사하세요. 그 값을 Setup code에 붙여 넣으세요. Sign in을 선택하세요. 다음 로그인부터 쓸 수 있게 패스키를 추가하세요.

에이전트 연결

에이전트 하나에 SwB을 연결하세요. 그다음 이 프롬프트를 그 에이전트에 붙여 넣으세요. 나머지 앱도 연결해 달라고 요청하세요.

Read the setup guide at https://swb.one/docs/connect.

Help me connect my agents and channels to SwB.

Use the owner's SwB sign-in for setup that needs owner access. If you use a paired key, give me the matching `swb connect` command for my SwB instance folder. Keep private links and codes in my terminal.

Call `connect` with the app I want to add. Call `connect(what="unknown")` for the available names. Do each step marked "you" yourself. Give me each step marked "person" as it comes up. Include its button names and links. Ask me to enter credentials through the private claim links.

Call `connect` again with the same choices to check progress. When setup is complete, call `swb_guide(trigger="setup")`. Follow the install guidance in `skill_install` for this version of SwB.

Save these three lines as my agent's SwB instructions. Replace each placeholder with my agent name or SwB project slug.

```text
You are <agent>.
Your SwB project is <project>.
On every wake, call swb_guide and follow its guidance.
```

For a coordinator, offer the `swb-captain` skill if my app loads skills.

이 페이지의 내용