LumoKit is a lightweight AI Toolkit Framework offering a multitude of on-chain actions and researching abilities. Created by Lumo Labs, it is specifically tailored for the Solana ecosystem.
You are currently in the frontend repository of LumoKit.
- Framework: Next.js (Built with React)
- Language: TypeScript
- Styling: Tailwind CSS
- Fonts: Space Grotesk, Bebas Neue (as seen in
app/layout.tsx) - Wallet Integration: Solana Wallet Adapter (inferred from
components/WalletContextProvider.tsx)
Stay updated and join our community:
- 🐦 X (Twitter): https://x.com/lumolabsdotai
✈️ Telegram: https://t.me/lumolabsdotai- 🐙 GitHub: https://github.com/Lumo-Labs-AI
- 🤗 HuggingFace: https://huggingface.co/lumolabs-ai
- 📈 DexScreener ($LUMO): https://dexscreener.com/solana/4FkNq8RcCYg4ZGDWh14scJ7ej3m5vMjYTcWoJVkupump
Follow these steps to set up and run the LumoKit frontend locally.
-
Clone the repository:
git clone https://github.com/Lumo-Labs-AI/lumokit-frontend.git cd lumokit-frontend -
Install dependencies: Using npm:
npm install
Or using yarn:
yarn install
-
Set up Environment Variables: Rename the
.env.examplefile (located in the root of the project) to.env.local. Then, update the variables with your specific configuration.Create a
.env.localfile in the root directory with the following content, adjusting values as necessary:// filepath: .env.local # Backend API URL NEXT_PUBLIC_API_URL="http://localhost" # Or your backend's actual URL # Lumo Token Contract Address NEXT_PUBLIC_LUMO_TOKEN_ADDRESS="4FkNq8RcCYg4ZGDWh14scJ7ej3m5vMjYTcWoJVkupump" # Pro Subscription Amount ($LUMO) NEXT_PUBLIC_PRO_SUBSCRIPTION_AMOUNT="22000" # Payment Receiver Address NEXT_PUBLIC_PAYMENT_RECEIVER_ADDRESS="CsTmcGZ5UMRzM2DmWLjayc2sTK2zumwfS4E8yyCFtK51" # Ensure this is an address you control # RPC URL for Solana - Recommended to use a dedicated provider like Helius, QuickNode, Alchemy, etc. NEXT_PUBLIC_SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"Environment Variable Details:
Variable Description From .env.exampleNEXT_PUBLIC_API_URLThe URL of your LumoKit backend instance. http://localhostNEXT_PUBLIC_LUMO_TOKEN_ADDRESSThe contract address of the $LUMO token on Solana. 4FkNq8RcCYg4ZGDWh14scJ7ej3m5vMjYTcWoJVkupumpNEXT_PUBLIC_PRO_SUBSCRIPTION_AMOUNTThe amount of $LUMO tokens required for a pro subscription. 22000NEXT_PUBLIC_PAYMENT_RECEIVER_ADDRESSThe Solana wallet address that will receive subscription payments. CsTmcGZ5UMRzM2DmWLjayc2sTK2zumwfS4E8yyCFtK51NEXT_PUBLIC_SOLANA_RPC_URLThe RPC URL for connecting to the Solana blockchain. Using a dedicated RPC provider is highly recommended (Example: Helius). https://api.mainnet-beta.solana.comNote: The values from
.env.exampleare provided as defaults. EnsureNEXT_PUBLIC_PAYMENT_RECEIVER_ADDRESSis an address you control if you intend to receive payments, and updateNEXT_PUBLIC_API_URLto point to your running backend. -
Backend Dependency:
⚠️ Crucial Requirement: The LumoKit frontend relies on a running LumoKit backend instance.- Ensure your backend service is operational.
- Verify that the backend is accessible at the
NEXT_PUBLIC_API_URLconfigured in your.env.localfile. - Refer to the LumoKit backend repository for its setup instructions.
-
Run the development server: Using npm:
npm run dev
Or using yarn:
yarn dev
Open http://localhost:3000 (or the port specified in your terminal, usually 3000 for Next.js) with your browser to see LumoKit in action.
LumoKit's powerful features come from its extensible tools system. All tools are defined in data/tools.json and can be managed through the UI.
Each tool in LumoKit is defined with the following properties:
| Property | Type | Description | Example |
|---|---|---|---|
icon_url |
String | Path to the tool's icon (relative to public directory) | /lumo-icon.png |
default_status |
Boolean | Whether the tool is enabled by default | true |
tool_identifier |
String | Unique identifier for the tool | wallet_portfolio_tool |
name |
String | Display name for the tool | Wallet Portfolio |
category |
String | Category for grouping related tools | Common |
description |
String | Short explanation of the tool's functionality | Get detailed information about all tokens held in a wallet |
read_more |
String | URL to documentation for the tool | https://lumolabs.ai |
When adding a new tool to LumoKit:
- Add a new entry to the
data/tools.jsonfile - Place the tool's icon in the
/publicdirectory - Ensure your backend implements the corresponding functionality
- Test the tool thoroughly before setting
default_statustotrue
Tools are loaded dynamically in the chat interface:
- Default tools are loaded automatically for new users based on
default_status - Users can customize their tool selection via the Tools & Settings modal
- Selected tools are saved in localStorage as
lumokit_tools - The
ToolsAndSettingsModal.tsxcomponent manages tool selection
- Keep tool descriptions concise but informative (recommended: 10-15 words)
- Use consistent naming conventions for
tool_identifier(lowercase with underscores) - Group related tools under the same category for better organization
- Limit default tools to maintain performance (2-3 maximum recommended)
- Ensure all tools have proper error handling in the backend
Tools are the building blocks of LumoKit's functionality. Choose them wisely!
Contributions are welcome! If you'd like to contribute to LumoKit, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
© 2025 Lumo Labs. LumoKit is open source and licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
