# Send Lighter to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lighter",
    "name": "Lighter",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/aviclaw/lighter",
    "canonicalUrl": "https://clawhub.ai/aviclaw/lighter",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/lighter",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lighter",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "USAGE.md",
      "requirements.txt",
      "scripts/account.py",
      "scripts/get_account_index.py",
      "scripts/markets.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "lighter",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T10:25:36.163Z",
      "expiresAt": "2026-05-07T10:25:36.163Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lighter",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lighter",
        "contentDisposition": "attachment; filename=\"lighter-2.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "lighter"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lighter"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lighter",
    "downloadUrl": "https://openagent3.xyz/downloads/lighter",
    "agentUrl": "https://openagent3.xyz/skills/lighter/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lighter/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lighter/agent.md"
  }
}
```
## Documentation

### Lighter Protocol

Trade on Lighter - a zero-knowledge rollup orderbook DEX with millisecond latency and zero fees.

### Quick Start (Read-Only)

# Markets are public - no credentials needed
curl "https://mainnet.zklighter.elliot.ai/api/v1/orderBooks"

### What is Lighter?

Zero fees for retail traders
Millisecond latency
ZK proofs of all operations
Backed by Founders Fund, Robinhood, Coinbase Ventures

API Endpoint: https://mainnet.zklighter.elliot.ai
Chain ID: 300

### Third-Party Dependencies

This skill can work with just requests library for read-only operations. For signing orders, you have two options:

Option A: Minimal (Read-Only)

pip install requests

Only for public data (markets, order books, prices).

Option B: Full Trading
Requires the official Lighter SDK. Review and verify before installing:

SDK Repository: https://github.com/elliottech/lighter-python
Verify the repository owner, stars, and code before running any setup

### External Code

Only proceed with external SDK if you:

Have reviewed the GitHub repository
Understand what the code does
Use a dedicated burner wallet, not your main wallet

### Environment Variables

VariableRequiredDescriptionWhere to FindLIGHTER_API_KEYFor ordersAPI key from Lighter SDK setupSee "Getting an API Key" section belowLIGHTER_ACCOUNT_INDEXFor ordersYour Lighter subaccount index (0-252)See "Getting Your Account Index" section belowLIGHTER_L1_ADDRESSOptionalYour ETH address (0x...) used on LighterYour MetaMask/Wallet address

### Setting Up Your Credentials

Step 1: Get your L1 Address

This is your Ethereum address (e.g., 0x1234...abcd)
Use the same wallet you connect to Lighter dashboard

Step 2: Get your Account Index

curl "https://mainnet.zklighter.elliot.ai/api/v1/accountsByL1Address?l1_address=YOUR_ETH_ADDRESS"

Response returns sub_accounts[].index — that's your account index (typically 0 for main account).

Step 3: Get your API Key

Install Lighter Python SDK: pip install lighter-python
Follow the setup guide: https://github.com/elliottech/lighter-python/blob/main/examples/system_setup.py
The SDK generates API keys tied to your account
Store the private key securely — never commit to git

Quick test (read-only, no credentials):

curl "https://mainnet.zklighter.elliot.ai/api/v1/orderBooks"

### Public Endpoints (No Auth)

# List all markets
curl "https://mainnet.zklighter.elliot.ai/api/v1/orderBooks"

# Get order book
curl "https://mainnet.zklighter.elliot.ai/api/v1/orderBook?market_id=1"

# Get recent trades
curl "https://mainnet.zklighter.elliot.ai/api/v1/trades?market_id=1"

### Authenticated Endpoints

# Account balance (requires API key in header)
curl -H "x-api-key: $LIGHTER_API_KEY" \\
  "https://mainnet.zklighter.elliot.ai/api/v1/account?by=index&value=$LIGHTER_ACCOUNT_INDEX"

### Getting Your Account Index

See "Setting Up Your Credentials" table above for the quick curl command.

### Getting an API Key

See "Setting Up Your Credentials" table above for the step-by-step guide.

### Common Issues

"Restricted jurisdiction":

Lighter has geographic restrictions - ensure compliance with their terms

SDK signing issues:

Use create_market_order() instead of create_order() for more reliable execution

### Market IDs

IDSymbol1ETH-USD2BTC-USD3SOL-USD

### Links

API: https://mainnet.zklighter.elliot.ai
Dashboard: https://dashboard.zklighter.io
SDK: https://github.com/elliottech/lighter-python

### Additional Examples

See USAGE.md in this skill folder for:

Detailed curl commands for all endpoints
Order book and trade queries
Account and position checks
Signed transaction flow (nonce → sign → broadcast)

Disclaimer: Review all external code before running. Use dedicated wallets for trading.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: aviclaw
- Version: 2.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T10:25:36.163Z
- Expires at: 2026-05-07T10:25:36.163Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/lighter)
- [Send to Agent page](https://openagent3.xyz/skills/lighter/agent)
- [JSON manifest](https://openagent3.xyz/skills/lighter/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/lighter/agent.md)
- [Download page](https://openagent3.xyz/downloads/lighter)