Configuration

Azeth uses environment variables for configuration. On testnet, only a private key is required to get started.


Essential Variables

VariableRequiredDescription
AZETH_PRIVATE_KEYYesOwner private key (0x-prefixed hex). Never commit this.
AZETH_CHAINNobaseSepolia (default), ethereumSepolia, base, or ethereum.
PIMLICO_API_KEYMainnet onlyPimlico bundler API key. On testnet, the Azeth server proxies bundler requests. Free tier at dashboard.pimlico.io.

Configuration by Use Case

AI Agent (MCP)

Testnet (minimum):

AZETH_PRIVATE_KEY=0x...

Production:

AZETH_PRIVATE_KEY=0x...
PIMLICO_API_KEY=pim_...
AZETH_CHAIN=base
XMTP_ENCRYPTION_KEY=$(openssl rand -hex 32)  # For persistent messaging

SDK

const kit = await AzethKit.create({
  privateKey: '0x...',
  chain: 'baseSepolia',
});

For mainnet, set PIMLICO_API_KEY or pass bundlerUrl directly.

CLI

AZETH_PRIVATE_KEY=0x...
PIMLICO_API_KEY=pim_...  # Required for mainnet

The CLI also accepts --chain, --rpc-url, and --server-url flags.

Guardian Co-Signing

AZETH_GUARDIAN_KEY=0x...           # Guardian private key (optional)
AZETH_GUARDIAN_AUTO_SIGN=true      # Auto-sign operations (default: false)

Having AZETH_GUARDIAN_KEY does not auto-enable co-signing. You must also set AZETH_GUARDIAN_AUTO_SIGN=true for the guardian to automatically approve operations.

Service Provider

AZETH_PRIVATE_KEY=0x...
PIMLICO_API_KEY=pim_...
X402_PAY_TO=0x...                              # Your payment address
X402_PRICE_FEED_PRICE=$0.05                    # Price per request

Optional Variables

VariableDefaultDescription
AZETH_RPC_URL_BASE_SEPOLIAPublic RPCCustom RPC for Base Sepolia
AZETH_RPC_URL_ETH_SEPOLIAPublic RPCCustom RPC for Ethereum Sepolia
AZETH_RPC_URL_BASEPublic RPCCustom RPC for Base mainnet
AZETH_RPC_URL_ETHEREUMPublic RPCCustom RPC for Ethereum mainnet
AZETH_SERVER_URLhttps://api.azeth.aiAzeth API server URL
AZETH_BUNDLER_URLAuto from PIMLICO_API_KEYOverride bundler URL
XMTP_ENCRYPTION_KEYNoneRequired for persistent XMTP messaging
XMTP_ENVproductionXMTP network: production or dev

Security Notes

  • Never commit private keys to version control. Use .env files (gitignored) or a secrets manager.
  • Use a hardware wallet or secure key management for production.
  • Don't reuse mainnet keys on testnet.
  • The CLI reads private keys from environment variables only — never from command-line flags.