Proxy Gateway
Proxy Gateway
Section titled “Proxy Gateway”Swixter includes a local proxy gateway that can intercept and route API requests from AI coders.
Start the proxy server.
swixter proxy startThe proxy listens on a local port (default: auto-assigned) and forwards requests to the configured provider’s API. This lets you:
- Inspect traffic: View request/response logs
- Switch backends: Change the provider without restarting the coder
- Add headers: Inject custom authentication or routing headers
Stop the running proxy server.
swixter proxy stopstatus
Section titled “status”Check if the proxy is running.
swixter proxy statusShows which coders are connected, the proxy port, and the active backend.
View proxy traffic logs.
swixter proxy logsShows recent requests with timing, status codes, and response sizes.
How It Works
Section titled “How It Works”AI Coder → proxy (localhost:PORT) → Provider API ↓ logs + monitoringThe proxy intercepts API calls from your AI coding assistant and forwards them to the actual provider. This enables transparent switching between providers without changing coder configuration.
Configuration
Section titled “Configuration”Proxy settings are stored in ~/.config/swixter/config.json under the proxy key:
{ "proxy": { "port": 0, "autoStart": false, "logLevel": "info" }}| Option | Description | Default |
|---|---|---|
port | Port to listen on (0 = auto) | 0 |
autoStart | Start proxy on profile apply | false |
logLevel | Logging verbosity | "info" |
See Also
Section titled “See Also”- Proxy advanced usage — custom routing and advanced configuration