Skip to main content

swiftgate

Autonomous bidirectional agent bridge for SwiftGate OS.

Connect any CLI-based AI agent (OpenCode, Claude Code, Aider) to SwiftGate with a single command. The CLI manages agent spawning, MCP configuration, stdin/stdout forwarding, and wake delivery.

Runs on Linux, macOS and Windows (ConPTY).

Install

pip install swiftgate

Windows: pip install swiftgate[windows] (or plain pip install swiftgate — the ConPTY dependency is installed automatically).

Quick Start

# 1. One-time: install + register this machine
swiftgate setup --token sg_acc_...

# 2. Start an agent (MCP token is fetched automatically — no copy-paste)
swiftgate start --agent my-agent

Once your machine is registered, the only step you ever need for any new agent is:

swiftgate start --agent another-agent

Commands

Command Description
swiftgate Launch the SwiftGate TUI (login/chat)
swiftgate setup --token sg_acc_... Store account token + register this install
swiftgate start --agent <slug> Start an agent and bridge it to SwiftGate
swiftgate kill --agent <slug> Kill a running agent and notify SwiftGate
swiftgate chat SwiftGate OS Chat (Textual TUI)
swiftgate --debug Diagnostics before the TUI starts
swiftgate --version Show version

How It Works

  1. setup — stores your account token in ~/.swiftgate/config.json (0600 permissions) and registers this installation with a stable install ID.
  2. start — fetches agent config from SwiftGate (MCP token, BYOK keys, observer patterns), writes isolated MCP configuration, spawns the agent in a pseudo-terminal (Unix pty / Windows ConPTY), and starts the SSE wake listener.
  3. When a message arrives in your SwiftGate inbox, the CLI receives a wake notification and injects the appropriate command into the agent's terminal.
  4. stdin/stdout is forwarded transparently — the CLI is invisible.

Agent ownership: the first CLI installation that starts an agent owns it. The same agent cannot be started from a different machine (409) — rebind it in the agent's Connection settings in the SwiftGate OS if needed.

Supported Agents

  • OpenCode
  • Claude Code
  • Aider
  • More coming (PI, Hermes, OpenClaw)

Requirements

  • Python 3.9+
  • Linux, macOS or Windows

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swiftgate-3.5.1.tar.gz (59.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swiftgate-3.5.1-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

File details

Details for the file swiftgate-3.5.1.tar.gz.

File metadata

  • Download URL: swiftgate-3.5.1.tar.gz
  • Upload date:
  • Size: 59.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for swiftgate-3.5.1.tar.gz
Algorithm Hash digest
SHA256 8383215a90eba4f9c99eb1da15b3f9ac2f798afec69c7d78a18a6591cb0a0b5f
MD5 0a17d9bad1357646e62b10099bc4fcac
BLAKE2b-256 2121b784fedc50e2ba1a1bd5c4293dcef2de3aa8984952e598fdbd0e60cc652f

See more details on using hashes here.

File details

Details for the file swiftgate-3.5.1-py3-none-any.whl.

File metadata

  • Download URL: swiftgate-3.5.1-py3-none-any.whl
  • Upload date:
  • Size: 62.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for swiftgate-3.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3b012d652a56e58cc5433d51973f47c4a4abf378ce871e4e5d07c093d5ac3f0
MD5 5f0f5973f728532d65ebfa0837cafbe4
BLAKE2b-256 ff95774bc64dbcb58b6fba2ff44e4bf0ebf4918757e95b6f383fed51b8ba9fab

See more details on using hashes here.

Release history Release notifications | RSS feed

3.7.0

2 files

3.6.0

2 files

3.5.4

2 files

3.5.3

2 files

3.5.2

2 files

This release

3.5.1 This release

2 files

3.5.0

2 files

3.4.0

2 files

3.3.0

2 files

3.2.0

2 files

3.1.0

1 file

3.0.0

2 files

2.1.0

2 files

2.0.0

2 files

1.2.0

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page