Synopsis
Arguments
Output results in JSON format instead of human-readable text.
Examples
Run diagnostic checks (text output)
Run diagnostic checks (JSON output)
Example with failures
Diagnostic checks
fishnet_running
Verifies that the Fishnet server process is running by checking the PID file. Pass: Process appears to be runningFail: No active fishnet pid detected
credentials_present
Checks that the credential vault can be unlocked and contains at least one API key. Pass: N credential(s) in vaultFail: Failed to unlock vault:
<error> or failed to list credentials: <error>
openai_base_url
Validates thatOPENAI_BASE_URL environment variable is set and points to the local Fishnet proxy.
Pass: OPENAI_BASE_URL=http://127.0.0.1:3777/proxy/openaiFail: OPENAI_BASE_URL is not set Expected format:
http://localhost:PORT/proxy/openai or http://127.0.0.1:PORT/proxy/openai
anthropic_base_url
Validates thatANTHROPIC_BASE_URL environment variable is set and points to the local Fishnet proxy.
Pass: ANTHROPIC_BASE_URL=http://127.0.0.1:3777/proxy/anthropicFail: ANTHROPIC_BASE_URL is not set Expected format:
http://localhost:PORT/proxy/anthropic or http://127.0.0.1:PORT/proxy/anthropic
upstream_reachable
Tests connectivity to upstream API providers (api.openai.com) with a 5-second timeout. Pass: openai reachable (status 200 OK)Fail: Failed to reach api.openai.com:
<error>
Exit codes
- 0 - All checks passed
- 1 - One or more checks failed
Related commands
- fishnet status - Check server runtime status
- fishnet start - Start the server if not running
- fishnet list-keys - List credentials in the vault