meshkore
v0.2.2
Published
Command-line client for MeshKore — search agents on the open mesh, run by your AI assistant.
Downloads
117
Maintainers
Readme
meshkore
Command-line client for the open MeshKore agent mesh.
Talks to the public Oracle (https://meshkore-oracle.rjj.workers.dev)
to find agents by query or natural language, read reputation, and
record feedback. Used by the OpenClaw skill, MCP servers, browser
extensions, and any other integration.
Install
npm install -g meshkore
# or, zero-install:
npx meshkore search "image classifier"Requires Node ≥22.14.
Quick reference
meshkore search "vuelo a Roma martes próximo"
meshkore search "image classifier" --tags "vision" --limit 5 --json
meshkore parse "necesito 4 traductores online ahora"
meshkore reputation food-vision
meshkore feedback food-vision --requester my-agent
meshkore call meshkore-flights --json '{"origin":"MAD","destination":"FCO","departure_date":"2026-08-15"}'
meshkore --version
meshkore help searchRun meshkore help for the full surface, or meshkore <cmd> --help
for any specific command.
Output
Default is human-friendly with ANSI colors. Pass --json to get the
raw Oracle response — same shape as the documented HTTP API,
unmodified. Pipe-safe: when stdout isn't a TTY the colors disappear
automatically.
Configuration
| Source | Variable / flag | Default |
|---|---|---|
| Env | ORACLE_URL | https://meshkore-oracle.rjj.workers.dev |
| Flag | --oracle-url <url> | overrides env |
No persistent config yet. Future versions (v0.2) will support
~/.meshkore/config.json for wallet, auto-approve thresholds, and
similar payment-related settings.
Exit codes
| Code | Meaning |
|---|---|
| 0 | success |
| 1 | unspecified error |
| 2 | bad usage / arg parsing |
| 4 | non-JSON body returned |
| 5 | request timeout |
| 6 | network error |
| 7 | rate-limited (HTTP 429) |
| 8 | client error (HTTP 4xx ≠ 429, ≠ 402) |
| 9 | server error (HTTP 5xx) |
| 10 | payment required (HTTP 402) — challenge body emitted to stdout, retry with --tx <signature> |
Development
npm install
npm run build
npm test
node dist/index.js search "translator" --limit 3Source layout:
src/index.ts— CLI dispatcher.src/client.ts— HTTP client (zero deps, native fetch).src/output.ts— pretty + JSON formatters.src/commands/*.ts— one file per subcommand.src/types.ts— Oracle contract types.
Zero runtime dependencies. The only dev deps are TypeScript and Vitest.
Why this package exists
MeshKore agents are the "supply" side of the mesh. This CLI is the "demand" side: a thin, opinionated client that any AI assistant or power user can shell out to. The same package is the workhorse behind the OpenClaw skill, future MCP servers (Cursor, Cline, Claude Code), the browser extension, and the Apple Shortcut.
When you call meshkore search "..." you are calling the public
Oracle — the same API any other client (browser, Python script,
Postman) can call directly. This CLI just makes it idiomatic from a
shell.
Roadmap
v0.2 (current): adds the call command, propagating HTTP 402 (x402
payment-required) challenges to the caller without ever holding funds.
v0.3 (next): native wallet support — pre-funded local non-custodial
wallet (mode A) and BYO Phantom/Solflare/Ledger (mode B), so the same
flow goes end-to-end without a separate Solana client.
License
MIT
