Skip to main content

RPC URLs

Set default RPC

Then all opendev tx and opendev simulate commands use that RPC:

Override per-command

CLI flags (--rpc, --network) take precedence over the config.

Environment variable

Configuration file

Persisted state lives in ~/.opendev/credentials.json:
Permissions: chmod 600 (user read/write only)

Custom credentials path

Override the default location:
Useful for tests or isolated environments.

AI provider configuration

See AI Insights for detailed setup. Quick reference:

Advanced options

Custom endpoint for AI analysis

The CLI POSTs the analysis payload to your URL and uses the response.

Disable AI entirely

Override AI model

Optional: Helius API key

For richer transaction parsing when available:

Network selection

Network flag (simplest)

RPC flag (most control)

Configuration (default for all commands)

Flags override configuration. So opendev tx <sig> --network mainnet will use mainnet even if ~/.opendev/credentials.json specifies a devnet RPC.

Examples

Local setup (development)

Production setup (CI)

Testing (disable AI, custom RPC)

Then on the next run:

Switching between networks

No need to reconfigure — just pass the flag.