skills$openclaw/minara
lowesyang1.5k

by lowesyang

minara – OpenClaw Skill

minara is an OpenClaw Skills integration for coding workflows. Minara Agent API offers crypto trading analysis, swap intent conversion, perpetual trading suggestions, and prediction market analysis. Supports API Key and x402 (pay-per-use USDC).

1.5k stars107 forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nameminara
descriptionMinara Agent API offers crypto trading analysis, swap intent conversion, perpetual trading suggestions, and prediction market analysis. Supports API Key and x402 (pay-per-use USDC). OpenClaw Skills integration.
ownerlowesyang
repositorylowesyang/minara
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lowesyang/minara
last updatedFeb 7, 2026

Maintainer

lowesyang

lowesyang

Maintains minara in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
267 B
SKILL.md
6.4 KB
SKILL.md

name: minara description: Minara Agent API offers crypto trading analysis, swap intent conversion, perpetual trading suggestions, and prediction market analysis. Supports API Key and x402 (pay-per-use USDC). homepage: https://minara.ai metadata: { "openclaw": { "always": true, "primaryEnv": "MINARA_API_KEY", "emoji": "👩", "homepage": "https://minara.ai", }, }

Minara API

Call the Minara Agent API for crypto trading assistance. Two auth options:

MethodBase URLRequires
API Keyhttps://api.minara.aiMINARA_API_KEY (Pro/Partner at minara.ai)
x402https://x402.minara.aiEVM_PRIVATE_KEY + USDC wallet (pay-per-use, no subscription)

Use API Key when MINARA_API_KEY is set; otherwise use x402 when EVM_PRIVATE_KEY is available.

Endpoints

1. Chat

POST https://api.minara.ai/v1/developer/chat

General-purpose chat for trading analysis, market insights, and questions.

ParamTypeRequiredDescription
modestringYes"fast" or "expert"
streambooleanYesfalse for JSON, true for SSE
messageobjectYes{ "role": "user", "content": "..." }
chatIdstringNoContinue existing conversation

Response: { chatId, messageId, content, usage }

2. Intent to Swap Transaction

POST https://api.minara.ai/v1/developer/intent-to-swap-tx

Convert natural language swap intent to an executable transaction payload (OKX DEX compatible).

ParamTypeRequiredDescription
intentstringYese.g. "swap 0.1 ETH to USDC"
walletAddressstringYes0x... address
chainstringNo"base", "ethereum", "bsc", "arbitrum", "optimism"

Response: { transaction: { chain, inputTokenAddress, inputTokenSymbol, outputTokenAddress, outputTokenSymbol, amount, amountPercentage, slippagePercent } }

3. Perpetual Trading Suggestion

POST https://api.minara.ai/v1/developer/perp-trading-suggestion

Get perp trading suggestions: side, entry, stop loss, take profit, confidence.

ParamTypeRequiredDescription
symbolstringYese.g. "BTC", "ETH", "SOL"
stylestringNo"scalping", "day-trading", "swing-trading" (default: scalping)
marginUSDnumberNoDefault 1000
leveragenumberNo1–40, default 10
strategystringNoDefault "max-profit"

Response: { entryPrice, side, stopLossPrice, takeProfitPrice, confidence, reasons, risks }

4. Prediction Market Analysis

POST https://api.minara.ai/v1/developer/prediction-market-ask

Analyze prediction market events (e.g. Polymarket) and get probability estimates.

ParamTypeRequiredDescription
linkstringYesEvent URL (e.g. Polymarket)
modestringYes"fast" or "expert"
only_resultbooleanNotrue = probabilities only, no reasoning
customPromptstringNoCustom analysis instructions

Response: { predictions: [{ outcome, yesProb, noProb }], reasoning }

Usage

API Key (api.minara.ai)

Use fetch or HTTP client:

  • URL: endpoint above
  • Method: POST
  • Headers: Authorization: Bearer ${process.env.MINARA_API_KEY}, Content-Type: application/json
  • Body: JSON object per endpoint spec

x402 (x402.minara.ai)

Pay-per-use with USDC. No subscription. See Getting Started by x402.

Option A: x402 SDK (recommended)

Node.js example—SDK handles payment challenges automatically:

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(
  process.env.EVM_PRIVATE_KEY as `0x${string}`
);
const client = new x402Client();
registerExactEvmScheme(client, { signer });
const fetchWithPayment = wrapFetchWithPayment(fetch, client);

const res = await fetchWithPayment("https://x402.minara.ai/x402/chat", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ userQuery: "What is the current price of BTC?" }),
});
const data = await res.json();

Dependencies: @x402/fetch, @x402/evm, viem. Solana: add @x402/svm.

x402 Chat endpoint (differs from API Key):

  • POST https://x402.minara.ai/x402/chat
  • Body: { "userQuery": "..." } (no mode/stream/message/chatId)
  • Response: { content }

Chain-specific: https://x402.minara.ai/x402/solana/chat, https://x402.minara.ai/x402/polygon/chat

Option B: Manual 402 flow

  1. Request → 402 with payment instructions (amount, recipient, chain)
  2. Send USDC to recipient
  3. Retry with x-payment-response header containing payment proof

Config

~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "minara": {
        "enabled": true,
        "apiKey": "YOUR_MINARA_API_KEY",
        "env": { "EVM_PRIVATE_KEY": "0x..." }
      }
    }
  }
}
  • API Key: set apiKey or MINARA_API_KEY in env.
  • x402: set env.EVM_PRIVATE_KEY or EVM_PRIVATE_KEY in env. Wallet must hold USDC. Sandboxed: use agents.defaults.sandbox.docker.env.
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

`~/.openclaw/openclaw.json`: ```json { "skills": { "entries": { "minara": { "enabled": true, "apiKey": "YOUR_MINARA_API_KEY", "env": { "EVM_PRIVATE_KEY": "0x..." } } } } } ``` - **API Key**: set `apiKey` or `MINARA_API_KEY` in env. - **x402**: set `env.EVM_PRIVATE_KEY` or `EVM_PRIVATE_KEY` in env. Wallet must hold USDC. Sandboxed: use `agents.defaults.sandbox.docker.env`.

FAQ

How do I install minara?

Run openclaw add @lowesyang/minara in your terminal. This installs minara into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lowesyang/minara. Review commits and README documentation before installing.