Skip to content

Proxy Gateway

Swixter includes a local proxy gateway that can intercept and route API requests from AI coders.

Start the proxy server.

Terminal window
swixter proxy start

The 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.

Terminal window
swixter proxy stop

Check if the proxy is running.

Terminal window
swixter proxy status

Shows which coders are connected, the proxy port, and the active backend.

View proxy traffic logs.

Terminal window
swixter proxy logs

Shows recent requests with timing, status codes, and response sizes.

AI Coder → proxy (localhost:PORT) → Provider API
logs + monitoring

The 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.

Proxy settings are stored in ~/.config/swixter/config.json under the proxy key:

{
"proxy": {
"port": 0,
"autoStart": false,
"logLevel": "info"
}
}
OptionDescriptionDefault
portPort to listen on (0 = auto)0
autoStartStart proxy on profile applyfalse
logLevelLogging verbosity"info"