---
name: thirdfy-lighter
description: "Use Lighter through Thirdfy (17 reads, 14 writes): one MCP, CLI and API for every agent, with each write checked against the owner's policy before it signs."
---

# Lighter through Thirdfy

Trade perpetuals on Lighter: fund the account, then place and cancel orders.

- Status: Live
- Chains: Lighter L2
- Can touch: 14 write actions from the agent's wallet, each checked against the owner's mandate before it signs.
- Directory: https://v2.thirdfy.com/protocols/lighter

## Connect

- MCP: `claude mcp add --transport http thirdfy https://mcp.thirdfy.com/mcp` (docs: https://docs.thirdfy.com/documentation/mcp)
- CLI: `npx @thirdfy/agent-cli@latest login` (add `--trade` to allow writes), then `npx @thirdfy/agent-cli@latest whoami`
- The owner allows Lighter for the agent: https://v2.thirdfy.com/integrations/lighter

## Actions

- `approve-lighter-integrator` (write): Approve Thirdfy as a Lighter integrator.
- `cancel-lighter-perps-order` (write): Cancel a Lighter perps order.
- `complete-lighter-onboarding` (write): Execute the next Lighter setup write and return a setup report.
- `create-lighter-api-key` (write): Generate a Lighter API key pair for registration.
- `create-lighter-deposit-intent` (write): Create a Lighter CCTP deposit intent address.
- `execute-lighter-secure-withdrawal` (write): Execute a secure Lighter withdrawal to the account L1 address.
- `modify-lighter-perps-order` (write): Modify a Lighter perps order.
- `place-lighter-perps-order` (write): Place a Lighter perps order.
- `prepare-lighter-secure-withdrawal` (write): Prepare a secure Lighter withdrawal plan.
- `register-lighter-api-key` (write): Register a Lighter API public key.
- `set-lighter-referral` (write): Set Lighter referral code for an account.
- `setup-lighter-api-key` (write): Generate and register a Lighter API key (create_api_key + change_api_key).
- `update-lighter-leverage` (write): Update Lighter per-market leverage.
- `update-lighter-margin` (write): Update Lighter isolated margin.
- `get-lighter-account` (read): Fetch Lighter account by L1 address or account index.
- `get-lighter-candles` (read): Fetch Lighter candles for a market.
- `get-lighter-funding-rates` (read): Fetch Lighter funding rates.
- `get-lighter-funding-status` (read): Read Lighter CCTP funding status and recommended path.
- `get-lighter-integrator-status` (read): Check Lighter integrator monetization status.
- `get-lighter-markets` (read): Fetch Lighter order book metadata.
- `get-lighter-onboarding-plan` (read): Plan Lighter onboarding steps.
- `get-lighter-open-orders` (read): Fetch active Lighter orders.
- `get-lighter-order-book` (read): Fetch Lighter order book orders for a market.
- `get-lighter-partner-stats` (read): Fetch Lighter partner stats.
- `get-lighter-pnl` (read): Fetch Lighter PnL chart data.
- `get-lighter-positions` (read): Fetch Lighter positions.
- `get-lighter-referral-status` (read): Fetch Lighter referral status.
- `get-lighter-setup-status` (read): Inspect Lighter setup readiness.
- `get-lighter-withdrawal-status` (read): Fetch Lighter withdrawal history.
- `prepare-lighter-onboarding` (read): Dry-run Lighter onboarding sequence.
- `search-lighter-markets` (read): Search Lighter markets with optional query and limit.

## Rules

- Call these actions through Thirdfy, not with your own keys: Thirdfy builds each transaction and the owner's policy checks it before it signs.
- A write that the owner has not allowed, or that breaks a limit, is refused before signing and costs nothing.
