Lighter
Perpetuals trading on zkLighter via Thirdfy provider actions. CCTP funding, API key signing, and integrator fee readiness.
Category: Trading
Lighter perpetuals are exposed through the governed action catalog under provider lighter. Orders are signed with a Lighter API key through the Thirdfy signer sidecar, not by ERC-7710 Gator grants.
Credential model
| Layer | Model |
|---|---|
| Exchange orders | Lighter API key (lighter_api_key credential: privateKey, apiKeyIndex 4–254, accountIndex) |
| Funding | CCTP deposit intent from Base, Arbitrum, or Avalanche USDC (minimum 5 USDC) |
| EVM funding txs | May use agent_wallet for source-chain USDC movement before CCTP |
| Reads | L1 address or Lighter account index |
Discovery
| Surface | Example |
|---|---|
| MCP | getProviderActions { provider: "lighter" } |
| CLI | thirdfy-agent lighter or thirdfy-agent actions --provider lighter |
Readiness checklist
- Source-chain USDC funded for CCTP when margin is not already on Lighter.
- Onboarding complete (
complete_lighter_onboardingor setup/status actions). - API key registered (
create_lighter_api_keythenregister_lighter_api_key). - Integrator approval when Thirdfy partner monetization is active (
approve_lighter_integrator). Unfunded integrator treasury returnsLIGHTER_INTEGRATOR_ACCOUNT_UNFUNDEDand orders proceed without integrator fee attachment. - Preflight and
delegationStatusbefore live writes. LIGHTER_SIGNER_URLorLIGHTER_SIGNER_BINARY_PATHconfigured on the API for signed writes.
Execution lanes
runMode | Use |
|---|---|
agent_wallet | Solo managed wallet for automated complete_lighter_onboarding (Base CCTP + Ethereum priority changePubKey) |
thirdfy / hybrid | Delegated user capital with lighter_api_key for order writes |
Use explicit place_lighter_perps_order actions. Generic place-perps-order aliases remain Hyperliquid-only in v1.
MCP sequence (summary)
getProviderActions { provider: "lighter" }get_lighter_funding_statusand market discovery reads- Onboarding or
get_lighter_setup_status approve_lighter_integratorwhen integrator monetization is active and approval is missing- Orders via
walletExecuteorexecuteIntentwith delegatedlighter_api_key
See Thirdfy MCP for the full recommended sequence.
Hosted deploy
Lighter perps templates are on EarnClaw (docs.earnclaw.com). EarnClaw hosts the Hermes runtime; Thirdfy governs execution through the lighter provider.