Starting Fishnet
Fishnet can be run in several modes depending on your deployment needs.Development Mode
For local development with auto-seeded test data:http://localhost:8473 by default.
Production Mode
Stopping Fishnet
To gracefully stop a running Fishnet process:SIGTERM signal and waits up to 10 seconds for graceful shutdown. If the process was started by the CLI, the PID file is automatically cleaned up.
Environment Variables
Fishnet supports several environment variables for configuration:| Variable | Default | Description |
|---|---|---|
FISHNET_HOST | 127.0.0.1 | Host address to bind to |
FISHNET_PORT | 8473 | Port to listen on |
OPENAI_BASE_URL | - | Agent should point to http://localhost:8473/proxy/openai |
ANTHROPIC_BASE_URL | - | Agent should point to http://localhost:8473/proxy/anthropic |
FISHNET_DEV | - | Set to 1 to enable development mode features |
Agent environments should configure their base URLs to point through Fishnet:
Service Installation
For production deployments, install Fishnet as a system service to start automatically on boot.- macOS (LaunchAgent)
- Linux (systemd)
Uninstall
Docker Deployment
Run Fishnet in a container with persistent vault storage:Docker Compose Configuration
docker-compose.yml
Status Monitoring
Check the current runtime status:Process Management
Fishnet uses a PID file stored in the data directory to track running processes:- PID file location:
~/.local/share/fishnet/fishnet.pid(Linux) or~/Library/Application Support/Fishnet/fishnet.pid(macOS) - Graceful shutdown: SIGTERM/SIGINT handlers ensure proper cleanup
- State persistence: All databases are flushed before shutdown
Health Checks
Use thedoctor command to validate your Fishnet installation:
- Process running status
- Credential vault accessibility
- Agent environment variable configuration
- Upstream API reachability