ReferenceConfiguration

Configured from the environment.#

The brain and the entire fund-control policy are configured from environment variables. No code changes are needed to change a limit, and nothing the model outputs can override them, because the policy is enforced in deterministic, unit-tested code.

Brain#

export OPENAI_API_KEY=sk-...
# optional overrides:
export LYRA_LLM_BASE_URL=https://api.openai.com/v1   # any OpenAI-compatible endpoint
export LYRA_LLM_MODEL=gpt-4o-mini                    # default model

Any OpenAI-compatible model works. Swapping the model has no effect on the safety boundary.

Policy#

LYRA_POLICY_MAX_NATIVE_SUI=2.0          # hard cap: block sends over 2 SUI
LYRA_POLICY_AUTO_MAX_NATIVE_SUI=0.1     # auto-execute up to 0.1 SUI; above this requires approval
LYRA_POLICY_MAX_SLIPPAGE_BPS=100        # block swaps over 1% slippage
LYRA_POLICY_AUTONOMY=auto               # auto | confirm | readonly
LYRA_POLICY_RECIPIENT_ALLOWLIST=0xabc...,0xdef...   # Sui addresses (0x + 64 hex)
LYRA_POLICY_TOKEN_ALLOWLIST=0x...::usdc::USDC,...   # Sui coin types
LYRA_POLICY_READONLY=1                  # reject all writes
VariableControls
LYRA_POLICY_MAX_NATIVE_SUIHard cap on native SUI per action. A value above this blocks.
LYRA_POLICY_AUTO_MAX_NATIVE_SUIThe amount the agent may move without prompting. Above it, approval is required.
LYRA_POLICY_MAX_SLIPPAGE_BPSMaximum allowed swap slippage, in basis points.
LYRA_POLICY_AUTONOMYauto (act within tier), confirm (prompt on writes), readonly (no writes).
LYRA_POLICY_RECIPIENT_ALLOWLISTComma-separated recipient Sui addresses the agent may send to.
LYRA_POLICY_TOKEN_ALLOWLISTComma-separated Sui coin types the agent may touch.
LYRA_POLICY_READONLYWhen set, all writes are rejected outright.

The approval floor sits beneath the autonomy tier: a material-risk action prompts for a human even under auto / YOLO, and is denied under readonly / strict.

Networks#

NetworkRPCExplorer
Sui mainnethttps://fullnode.mainnet.sui.io:443https://suiscan.xyz
Sui testnethttps://fullnode.testnet.sui.io:443https://suiscan.xyz/testnet

Gas token is SUI (9 decimals; smallest unit is MIST, 1 SUI = 1e9 MIST). Sui does not use numeric Sui chain IDs. Start on Sui testnet for exploratory work, then move to mainnet once your policy is set.

Read Console next.

Source: README.md.

Source: README.md

Configuration · lyra docs