# Lumora agent instructions

Lumora is a visual workspace on X Layer where a human and their AI agent manage assets, yield, trades, and meme positions together. It is built on OKX OnchainOS and the OnchainOS Agentic Wallet. The agent researches and proposes; the human reviews and decides what runs.

## When to use this
- A user wants to manage on-chain assets with an agent while keeping a human in the loop.
- A user wants a visual console for an agent that runs locally (for example Claude Code, OpenAI Codex CLI, or Grok Build) on top of OnchainOS.
- A user asks how to connect their computer or agent to Lumora, or what Lumora can and cannot do.
- You need Lumora's safety model: who holds keys, what needs confirmation, what gets logged.

## When not to use this
- Do not move funds without the user's explicit confirmation. Swaps, bridges, sends, and buys go through a review step in the Lumora console before anything goes on-chain.
- Do not ask the user for private keys, seed phrases, or OnchainOS session secrets. Lumora never needs them.
- Do not treat Lumora as a custodian. It cannot hold or move funds on its own.
- Do not claim Lumora supports chains, products, or actions that are not listed below.

## How Lumora works
Three layers, one stack:
- **Lumora (application layer):** the console in the browser at https://app.lumorai.io. It shows balances, opportunities, tasks, and activity, and it is where the human reviews actions.
- **OnchainOS (operating-system layer):** OKX's toolkit that unifies wallet, trading, payments, and market APIs for an agent.
- **X Layer (infrastructure layer):** OKX's EVM L2 for fast, low-cost execution.

The browser console holds no wallet keys and never goes on-chain itself. Real operations run on the user's own connected computer, through the Lumora connection helper (`@xploai/daemon`) and the OnchainOS CLI installed there.

## Getting started (for an agent helping a user)
Onboarding has four steps:
1. **Email sign-in:** the user signs in at https://app.lumorai.io with their email and a 6-digit code.
2. **Connect computer:** the user names the computer their agent runs on, and the console shows a one-time command of this form:
   ```
   npx @xploai/daemon@latest \
     --backend-url https://chainos-console.up.railway.app \
     --api-key <machine key> \
     --name <machine name>
   ```
   Run it on that computer. It starts the connection helper and links the machine to the console.
3. **Prepare environment:** the console checks and installs OnchainOS on that computer.
4. **Activate wallet:** the user signs in to the agent wallet through an OKX email code. The agent wallet is separate from the user's personal wallet.

The connection helper must keep running. If the machine shows offline, re-run the same command on that computer and the console reconnects on its own. To check it: `pgrep -fl @xploai/daemon`; to see why it stopped: `tail -n 30 ~/.onchainos-daemon.log`.
Treat the machine key as a secret: never print, log, or share it. If a key leaks, the user can issue a new one or revoke it under Settings > Machines.

## What an agent can do through Lumora
- **Agent:** take natural-language instructions from the user in "Ask your agent", for example `Swap 0.1 ETH to USDC on Base`, `Bridge 50 USDC to Base`, `Summarize my positions`. Every task shows up in Recent tasks with its status.
- **Today:** a daily overview with total assets, quick actions, and recent agent activity.
- **Wallet:** token balances across chains, receive addresses (EVM and Solana), and transaction history.
- **Trade:** swap (with slippage control), bridge between chains, send to an address, limit orders (executed automatically by the Agentic Wallet once the trigger price hits; orders expire after 7 days), and a US-stocks watch view.
- **Yield:** an autopilot that ranks stablecoin yield products (such as Fluid, Morpho, Syrup, Aave V3) and lets the user deploy an earn budget in three steps: choose funds, choose how steady, start.
- **Meme:** Meme Scout ranks new tokens using user-defined filters (chain, market cap, liquidity, volume, token age, holders, buy-size range), plus smart-money, KOL, and whale signals and a trader leaderboard. It only suggests; each buy needs review.
- **Privacy:** split one payment to many recipients through a shielded pool.

Agent wallet networks: Ethereum, Base, BNB Chain, Polygon, Arbitrum, Optimism, X Layer, and Solana.

## Safety contract
- **Human review before authorization:** swaps, bridges, sends, and buys require explicit human confirmation in the console. Once the user approves placement of a limit order, the Agentic Wallet can execute it automatically when the trigger price is met; orders expire after 7 days.
- **Isolated agent wallet:** the agent's wallet is separate from the user's personal wallet, so any mistake is limited to the agent wallet's balance.
- **Keys stay with OnchainOS:** key custody is handled by the OnchainOS Agentic Wallet. Lumora cannot hold or move funds on its own.
- **Everything is logged:** every agent action appears in Settings > Activity with time, type, action, status, and duration.
- **The user controls machines:** each connected computer can be tested, given a new key, or revoked from Settings > Machines.

## Canonical resources
- App: https://app.lumorai.io
- Docs: https://lumora-agent.gitbook.io/lumora/
- Docs for LLMs: https://lumora-agent.gitbook.io/lumora/llms.txt
- GitHub (Aether local execution engine): https://github.com/Lumoradotai/Lumora-Aether
- X: https://x.com/lumora_agent
- Discord: https://discord.gg/JWRUjKhgSb
- Contact: contact@lumorai.io

## Public discovery
- Agent discovery index: https://app.lumorai.io/llms.txt
- These instructions: https://app.lumorai.io/agents.md
- Use public documentation for product research. Workspace and onboarding routes are interactive user flows, not public documentation.
- Obtain connection commands only from the user's own signed-in console. Never invent credentials or reuse a machine key from another user.
