Configuration
Customize network, RPC endpoint, and gas payment settings
View Current Settings
starkfi config listShows your current network, RPC endpoint, gas mode, and gas token. If nothing has been configured, you'll see default values.
Network
Switch between Starknet mainnet and Sepolia testnet:
starkfi config set-network mainnet # Production (default)
starkfi config set-network sepolia # TestnetNote: Switching networks does not affect your session — you stay authenticated. However, your wallet address and balances will differ per network.
Custom RPC
Set a custom Starknet RPC endpoint:
starkfi config set-rpc https://starknet-mainnet.g.alchemy.com/v2/YOUR_KEYCheck the current RPC:
starkfi config get-rpcTip: Use a custom RPC if you're hitting rate limits on the default Starkzap endpoint, or if you need higher throughput for batch operations.
Gas Abstraction
By default, you pay gas in STRK. StarkFi supports two alternative gas modes via the AVNU Paymaster — both let you transact without holding STRK.
Gasfree Mode — Developer Pays Everything
The developer sponsors all gas fees. Users transact for free.
starkfi config set-gasfree on # Enable
starkfi config set-gasfree off # DisableBest for onboarding new users, demos, and testing environments.
Gasless Mode — User Pays in Any Token
Users pay gas in an ERC-20 token they already hold — no STRK needed:
starkfi config set-gas-token USDC # Pay gas in USDC
starkfi config set-gas-token ETH # Pay gas in ETH
starkfi config set-gas-token reset # Revert to default (STRK)Supported Gas Tokens
| Token | Description |
|---|---|
| STRK | Default gas token |
| ETH | Ether |
| USDC | USD Coin |
| USDT | Tether |
| DAI | Dai Stablecoin |
Important: Gasfree and Gasless modes are mutually exclusive. Enabling one clears the other. Use
starkfi config listto verify your current mode.
Reset All Settings
Clear all custom configuration and revert to defaults:
starkfi config resetThis removes custom RPC URL, network, gas token, and gasfree mode settings in one command.
MCP Server Configuration
When using the MCP server, the same settings are available through the config_action tool:
{ "action": "set-gasfree", "value": "on" }
{ "action": "set-gas-token", "value": "USDC" }
{ "action": "set-network", "value": "mainnet" }
{ "action": "reset" }
{ "action": "list" }All 7 subcommands work identically in both CLI and MCP: list, reset, set-rpc, get-rpc, set-network, set-gasfree, set-gas-token.
Environment Variables
These environment variables override configuration for advanced use cases:
| Variable | Purpose | Default |
|---|---|---|
STARKFI_API_URL | StarkFi auth server URL | Built-in default |
STARKFI_NETWORK | Override configured network | From config |
STARKFI_RPC_URL | Override configured RPC | From config |
Last updated on