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
setup— stores your account token in~/.swiftgate/config.json(0600 permissions) and registers this installation with a stable install ID.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.- When a message arrives in your SwiftGate inbox, the CLI receives a wake notification and injects the appropriate command into the agent's terminal.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swiftgate-3.3.0.tar.gz.
File metadata
- Download URL: swiftgate-3.3.0.tar.gz
- Upload date:
- Size: 52.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7d059b2e11d5c0ed8d64b89f2b6c400ac027bf227aa171dcca89ba9a8fc550d
|
|
| MD5 |
553f05ab2c258748a461a54ea342b192
|
|
| BLAKE2b-256 |
abc70a9db2cc423da90988d5d8ee5e94761c23d5e1983fefef4695fb2d802ae4
|
File details
Details for the file swiftgate-3.3.0-py3-none-any.whl.
File metadata
- Download URL: swiftgate-3.3.0-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e782e1142a1f52ea393f49aa8dd347adbf2de084a70ce34b311461f522bc501
|
|
| MD5 |
fb00cfbdda5504b9940af10b63f99af4
|
|
| BLAKE2b-256 |
78069ddc727676c01a1bc4a55660bed15a06c32e910f9d76d00775e4912fa606
|