← Back to Skills Marketplace
crotalus

Manifold Markets

by Crotalus · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
1665
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install manifold
Description
Read and trade on Manifold Markets (search markets, fetch probabilities, inspect users/bets, place bets/sell/comment). Never place a bet/sell/comment without explicit user confirmation.
README (SKILL.md)

Manifold Markets

Use this skill to read from Manifold Markets (search markets, fetch probabilities, inspect public user info) and to place trades/comments with explicit confirmation.

Write actions require MANIFOLD_API_KEY (in the environment or configured via OpenClaw skill entries).

Base URL: https://api.manifold.markets/v0

Docs: https://docs.manifold.markets/api

Read tasks

Search markets

curl -s "https://api.manifold.markets/v0/search-markets?term=AI+safety&limit=5"

Tip: replace spaces with + (or URL-encode). If you have jq, format results:

curl -s "https://api.manifold.markets/v0/search-markets?term=AI+safety&limit=5" | jq '.[] | {id, slug, question, outcomeType, probability, createdTime, creatorUsername}'

List newest markets

curl -s "https://api.manifold.markets/v0/markets?limit=10"

With jq:

curl -s "https://api.manifold.markets/v0/markets?limit=10" | jq '.[] | {id, slug, question, outcomeType, probability, closeTime}'

Get market details (by ID)

curl -s "https://api.manifold.markets/v0/market/MARKET_ID"

Binary markets usually expose probability (0..1). Other market types may not have a single probability field.

Get market details (by slug)

The slug is the portion of the Manifold URL after the username (e.g. .../Alice/my-market-slugmy-market-slug).

curl -s "https://api.manifold.markets/v0/slug/MARKET_SLUG"

Inspect a user (by username)

curl -s "https://api.manifold.markets/v0/user/USERNAME"

List bets for a user

If you have jq:

USER_ID="$(curl -s "https://api.manifold.markets/v0/user/USERNAME" | jq -r '.id')"
curl -s "https://api.manifold.markets/v0/bets?userId=$USER_ID&limit=50"

Without jq, fetch the user JSON and read the id field, then use it:

curl -s "https://api.manifold.markets/v0/user/USERNAME"
curl -s "https://api.manifold.markets/v0/bets?userId=USER_ID&limit=50"

Write safety rules

  • Never place a bet, sell shares, or post a comment unless the user explicitly confirms (e.g. “yes, place it”, “confirm”, “do it”).
  • Always fetch the market first and restate: market question, market id/slug, action (bet/sell/comment), side/answer, amount/shares, and any limits.
  • If the user is not explicit about amount/side, stop and ask.

Write tasks

Authentication

  • Uses MANIFOLD_API_KEY in header: Authorization: Key $MANIFOLD_API_KEY
  • Set MANIFOLD_API_KEY (or skills.manifold.apiKey in ~/.openclaw/openclaw.json).

Place a bet (binary market)

  1. Fetch the market and confirm it’s the right one:
curl -s "https://api.manifold.markets/v0/market/MARKET_ID"
  1. Preview the exact payload you intend to send (do not run the POST until user confirms):
cat \x3C\x3C'JSON'
{"amount":10,"contractId":"MARKET_ID","outcome":"YES"}
JSON
  1. After explicit confirmation, place the bet:
curl -s -X POST "https://api.manifold.markets/v0/bet" \
  -H "Authorization: Key $MANIFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount":10,"contractId":"MARKET_ID","outcome":"YES"}'

Notes:

  • amount is in Mana (integer).
  • outcome is YES or NO for binary markets.
  • For non-binary markets, consult the Manifold API docs for the correct payload.

Sell shares

Preview first (do not run until user confirms).

Sell all shares for an outcome (omit shares to sell all):

curl -s -X POST "https://api.manifold.markets/v0/market/MARKET_ID/sell" \
  -H "Authorization: Key $MANIFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"outcome":"YES"}'

Sell a specific number of shares:

curl -s -X POST "https://api.manifold.markets/v0/market/MARKET_ID/sell" \
  -H "Authorization: Key $MANIFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"outcome":"YES","shares":10}'

Post a comment

Comments made through the API can incur a fee (see Manifold API docs). Always confirm text + target market.

curl -s -X POST "https://api.manifold.markets/v0/comment" \
  -H "Authorization: Key $MANIFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contractId":"MARKET_ID","content":"Your comment here."}'

Notes

  • Rate limits apply (see Manifold API docs).
  • Private/unlisted markets may not be accessible via the public API depending on current platform behavior.
Usage Guidance
This skill appears coherent for interacting with Manifold Markets. Before installing: only provide a MANIFOLD_API_KEY you trust (consider using a key with limited scope if supported), confirm you are comfortable the agent can make network calls to the Manifold API (these are needed to place trades), and verify the skill source if you require provenance. Note the SKILL.md requires explicit user confirmation before any write action — still be cautious: if you grant the API key and later revoke it if you see unexpected activity. If you need extra assurance, test read-only actions first and avoid storing long-lived credentials in places accessible to other apps.
Capability Analysis
Type: OpenClaw Skill Name: manifold Version: 1.0.0 The skill is benign. It clearly defines its purpose to interact with Manifold Markets via their official API. It explicitly instructs the AI agent to obtain user confirmation for all write actions (placing bets, selling shares, posting comments), which is a strong safeguard against prompt injection. The `MANIFOLD_API_KEY` is used solely for authentication with the legitimate `api.manifold.markets` endpoint, and there is no evidence of data exfiltration, malicious execution (e.g., `curl|bash`), persistence mechanisms, or obfuscation techniques. All commands are standard `curl` requests or `jq` for local JSON parsing.
Capability Assessment
Purpose & Capability
Name/description (Manifold Markets trading + read) match the declared requirements: curl and MANIFOLD_API_KEY are exactly what a Manifold API integration needs. No unrelated binaries or credentials are requested.
Instruction Scope
SKILL.md provides concrete curl commands against api.manifold.markets, requires fetching the market before writes, and mandates explicit user confirmation before placing bets/sells/comments. It does not instruct reading unrelated files or exfiltrating data to other endpoints (it only references storing the API key in ~/.openclaw/openclaw.json as an optional config location).
Install Mechanism
No install spec or code files are provided (instruction-only). This minimizes on-disk code installation risk.
Credentials
Only a single credential (MANIFOLD_API_KEY) is required and declared as primaryEnv, which is proportionate for a trading/integration skill. No unrelated secrets or multiple credentials are requested.
Persistence & Privilege
Skill is not forced-always (always: false) and does not request elevated system-wide privileges or to modify other skills. Normal autonomous invocation is allowed by platform defaults but is not a red flag by itself.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install manifold
  3. After installation, invoke the skill by name or use /manifold
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the Manifold skill. - Search, read, and inspect markets, probabilities, users, and bets on Manifold Markets. - Place bets, sell shares, and post comments only after explicit user confirmation. - Requires `MANIFOLD_API_KEY` for write actions. - Provides usage examples and clear safety rules for all trading actions.
Metadata
Slug manifold
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Manifold Markets?

Read and trade on Manifold Markets (search markets, fetch probabilities, inspect users/bets, place bets/sell/comment). Never place a bet/sell/comment without explicit user confirmation. It is an AI Agent Skill for Claude Code / OpenClaw, with 1665 downloads so far.

How do I install Manifold Markets?

Run "/install manifold" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Manifold Markets free?

Yes, Manifold Markets is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Manifold Markets support?

Manifold Markets is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Manifold Markets?

It is built and maintained by Crotalus (@crotalus); the current version is v1.0.0.

💬 Comments