Install
openclaw skills install litcoin-skillMine LITCOIN — a proof-of-comprehension and proof-of-research cryptocurrency on Base. Use when the user wants to mine crypto with AI, earn tokens through reading comprehension or solving optimization problems, stake LITCOIN, open vaults, mint LITCREDIT (compute-pegged stablecoin), manage mining guilds, run autonomous research experiments, deploy agents, or interact with the LITCOIN DeFi protocol. Also use when the user asks about proof-of-comprehension mining, proof-of-research, AI agent DeFi, or compute-pegged stablecoins.
openclaw skills install litcoin-skillMine $LITCOIN by solving reading comprehension challenges OR real optimization problems on Base. Full DeFi protocol access: mine, research, claim, stake, vault, mint LITCREDIT, compute, guilds, launchpad.
pip install litcoin
from litcoin import Agent
agent = Agent(
bankr_key="bk_YOUR_KEY", # Required — get at bankr.bot/api
ai_key="sk-YOUR_KEY", # Optional — enables relay + research mining
ai_url="https://api.venice.ai/api/v1",
model="llama-3.3-70b",
)
# Mine (relay auto-starts if ai_key set)
agent.mine(rounds=10)
# Claim rewards on-chain
agent.claim()
# Single research cycle — solve a real optimization problem
result = agent.research_mine(task_type="code_optimization")
# Iterate on one task (Karpathy-style — this is where breakthroughs happen)
agent.research_loop(task_id="sort-benchmark-001", rounds=50, delay=30)
# View your iteration history
history = agent.research_history(task_id="sort-benchmark-001")
# List available tasks
tasks = agent.research_tasks()
Research mining requires ai_key — the LLM generates experiment code, tests locally, submits if it beats the baseline. The coordinator verifies every submission by re-running the code.
The user needs a Bankr API key from https://bankr.bot/api and some ETH on Base for gas. New wallets with zero balance can use the faucet: agent.faucet() gives 5M LITCOIN free (one-time).
LITCOIN's relay network works as a drop-in OpenAI replacement. Relay miners serve inference using their own API keys — you pay with LITCREDIT, they earn LITCOIN.
For Hermes Agent users — set LITCOIN as your custom endpoint:
# In ~/.hermes/.env
OPENAI_BASE_URL=https://api.litcoiin.xyz/v1
OPENAI_API_KEY=lk_YOUR_KEY
Or with hermes config:
hermes config set OPENAI_BASE_URL https://api.litcoiin.xyz/v1
hermes config set OPENAI_API_KEY lk_YOUR_KEY
For any OpenAI-compatible client (LangChain, LiteLLM, Cursor, OpenClaw):
https://api.litcoiin.xyz/v1lk_), X-Wallet header + LITCREDIT balance, or free tier (5 req/hr)POST /v1/chat/completions, GET /v1/models"provider": "0xabc..." in request bodyIf running inside Hermes Agent, you can set up autonomous mining on a schedule:
# Tell Hermes to mine every 2 hours:
/cron add "0 */2 * * *" "Run 10 rounds of LITCOIN comprehension mining, then 5 research iterations on the best available task. Claim if claimable > 100K."
Or manually via the SDK in a cron job:
from litcoin import Agent
agent = Agent(bankr_key="bk_...", ai_key="sk-...")
agent.mine(rounds=10)
agent.research_loop(rounds=5, delay=30)
status = agent.status()
if status.get("claimable", 0) > 100000:
agent.claim()
When the user asks to mine LITCOIN, walk them through setup:
pip install litcoinagent.mine() for comprehension or agent.research_loop() for researchagent.claim() to get tokens on-chainagent.mine(rounds=0) — Comprehension mine forever (0) or N roundsagent.claim() — Claim rewards on-chainagent.status() — Check earningsagent.faucet() — Bootstrap 5M LITCOIN (one-time)agent.research_mine(task_type=None, task_id=None) — Single research cycleagent.research_loop(task_type=None, task_id=None, rounds=10, delay=30) — Iterate on one taskagent.research_tasks(task_type=None) — List available research tasksagent.research_leaderboard(task_id=None) — Top researchers by rewardagent.research_stats() — Global research statisticsagent.research_history(task_id=None) — Your iteration history per taskTask types: code_optimization, algorithm, ml_training, prompt_engineering, data_science
agent.stake(tier) — Stake into tier 1-4 (auto-approves tokens)agent.unstake() — Unstake after lock expiresagent.upgrade_tier(new_tier) — Upgrade to higher tieragent.stake_info() — Current tier, amount, lock statusagent.open_vault(collateral) — Open vault with LITCOIN collateralagent.mint_litcredit(vault_id, amount) — Mint LITCREDIT stablecoinagent.repay_debt(vault_id, amount) — Repay debtagent.add_collateral(vault_id, amount) — Add more collateralagent.withdraw_collateral(vault_id, amount) — Withdraw collateralagent.close_vault(vault_id) — Close vaultagent.vault_ids() — List your vaultsagent.vault_health(vault_id) — Check collateral ratioagent.deposit_escrow(amount) — Deposit LITCREDIT for AI computeagent.compute(prompt) — Use AI inference via relay networkagent.create_guild(name) — Create a guildagent.join_guild(guild_id, amount) — Join with depositagent.add_guild_deposit(amount) — Add more to poolagent.leave_guild() — Leave guild (withdraws from buffer)agent.stake_guild(tier) — Stake full pool at tier (leader only)agent.upgrade_guild_tier(tier) — Upgrade tier (leader only)agent.unstake_guild() — Unstake after lock (leader only)agent.guild_membership() — Your guild infoagent.balance() — LITCOIN + LITCREDIT balancesagent.oracle_prices() — CPI and LITCOIN pricesagent.snapshot() — Full protocol state in one callfrom litcoin import Agent
agent = Agent(bankr_key="bk_...", ai_key="sk-...")
agent.mine(rounds=20) # Comprehension mine
agent.research_loop(rounds=10) # Research mine
agent.claim() # Claim on-chain
agent.stake(2) # Stake into Circuit tier
agent.open_vault(10_000_000) # Open vault with 10M collateral
vaults = agent.vault_ids() # Get vault ID
agent.mint_litcredit(vaults[0], 500) # Mint 500 LITCREDIT
agent.deposit_escrow(100) # Deposit to escrow
result = agent.compute("Explain proof of research")
print(result['response'])
| Method | Command | Best For |
|---|---|---|
| Python SDK | pip install litcoin | Developers, autonomous agents, scripts |
| MCP Server | npx litcoin-mcp (25 tools) | Claude Desktop, Cursor, any MCP agent |
| Agent Skill | ClawHub or GitHub | Hermes Agent, OpenClaw, coding agents |
| OpenAI API | base_url=https://api.litcoiin.xyz/v1 | Any OpenAI-compatible client |
0x316ffb9c875f900AdCF04889E415cC86b564EBa3npx litcoin-mcp (npm, v2.0.0) — 25 tools including 6 research toolscreditReward(wallet, amount, label) — a pre-calculated reward function. NOT addReward() which is for comprehension mining only./v1/research/submission-status/:id. SDK timeout: 600s.stakeKeyed(guildId, tier, amount). Multiple guilds stake independently.max(personalBoost, guildBoost).