StarkFiStarkFi

Configuration

Customize network, RPC endpoint, and gas payment settings

Overview

StarkFi stores configuration settings locally using env-paths. All settings persist across terminal restarts and apply to both CLI and MCP server.

starkfi config list

For the full list of subcommands and flags, see the CLI Config Reference.


Quick Reference

What you want to doCommand
See all settingsstarkfi config list
Switch to testnetstarkfi config set-network sepolia
Use a custom RPCstarkfi config set-rpc <url>
Pay gas in USDCstarkfi config set-gas-token USDC
Let the developer pay gasstarkfi config set-gasfree on
Reset everythingstarkfi config reset

Network

Switch between Starknet mainnet and Sepolia testnet:

starkfi config set-network mainnet    # Production (default)
starkfi config set-network sepolia    # Testnet

Network switching is instant — no re-login required. StarkFi resolves the network at runtime using a priority chain: config.network (user override) → session.network (login default).


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    # Disable

Best 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

TokenDescription
STRKDefault gas token
ETHEther
USDCUSD Coin
USDTTether
DAIDai Stablecoin

Important: Gasfree and Gasless modes are mutually exclusive. Enabling one clears the other. Use starkfi config list to verify your current mode.

For the technical details of how gas abstraction works, see AVNU Paymaster.


Environment Variables

These environment variables override configuration for advanced use cases:

VariablePurposeDefault
STARKFI_API_URLStarkFi auth server URLBuilt-in default
AVNU_PAYMASTER_API_KEYAPI key for AVNU Paymaster (optional, for authenticated access)

MCP Server Configuration

When using the MCP server with AI agents, the same settings are available through the config_action tool. See Auth & Config Tools for the full API reference.


See Also

Edit on GitHub

Last updated on

On this page