Base URL
HTTP endpoint
https://settlemesh.ioSettleMesh API Docs
Use the CLI when a human or agent is operating in a terminal. Use HTTP when embedding SettleMesh in a server. Both use the same SettleMesh account, credits, service catalog, and execution contracts.
Base URL
https://settlemesh.ioAuth
Authorization: Bearer $SETTLE_API_KEYCLI
npm install settlemesh@latest --prefer-onlineAgents
npm install settlemesh@latest --prefer-online
./node_modules/.bin/settlemesh doctor --require-latest
./node_modules/.bin/settlemesh login
./node_modules/.bin/settlemesh search "web research" --json
./node_modules/.bin/settlemesh tool show web.search --json
./node_modules/.bin/settlemesh tool call web.search --input '{"q":"SettleMesh docs"}' --jsoncurl "https://settlemesh.io/v1/services/search?q=web+research" \
-H "Authorization: Bearer $SETTLE_API_KEY"
curl "https://settlemesh.io/v1/tools/web.search" \
-H "Authorization: Bearer $SETTLE_API_KEY"Service Search
GET /v1/services/search?q=... returns service cards and matched operations.
GET /v1/services/{id} returns the card, category, descriptions, entrypoints, and operation refs.
Tool Protocol
GET /v1/tools lists executable tools. GET /v1/tools/{id} shows input schema, pricing metadata, and wait behavior.
POST /v1/tools/{id}/call invokes the tool. Prefer the CLI wrapper for humans and agents.
OpenAI-compatible
Text model routes support OpenAI-style clients with baseURL=https://settlemesh.io/v1 and your SettleMesh key.
curl https://settlemesh.io/v1/chat/completions \
-H "Authorization: Bearer $SETTLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openrouter/auto","messages":[{"role":"user","content":"Hello"}]}'Apps, Agents, Workers
Deploy apps with settlemesh deploy, publish App APIs/commands, upload hosted agents, or share local worker offers. Published resources become searchable service cards when approved.