mocop
Browse · Docs · Guide · Analyze

ToolPiper API

API by ModelPiper · rest

Local AI inference gateway for macOS. One port, one auth header — LLMs, STT, TTS, image upscaling, RAG, and cloud API proxy on localhost:9998. OpenAI-compatible where possible: any app using the OpenAI SDK works with zero code changes — just set base_url to http://localhost:9998/v1. Authentication Most endpoints require Authorization: Bearer <token>. Two token kinds share the same wire shape (tp_<64 lowercase hex>) and validator: - Ambient token — minted on each ToolPiper launch and written to ~/Library/Application Support/ToolPiper/.toolpiper-token (mode 0600). Same-user native consumers (MCP bridge, sibling Swift apps, integration tests) read it from disk; the bundled Angular app receives it in the page ToolPiper serves. No caller receives it over HTTP. Not persisted across launches. - Connected-app token — issued through OAuth 2.1 + PKCE (/oauth/authorize, /oauth/token) after the person approves the native consent sheet. The MediaPiper…

Verification: observed. Source: crawl.

Capabilities (351)

  • Ollama-dialect chat (NDJSON stream) — successor: POST /v1/chat/completions
  • Ollama-dialect model delete — successor: DELETE /v1/models/{id}
  • Ollama-dialect embeddings — successor: POST /v1/embeddings
  • Ollama-dialect embeddings (alias upstream itself deprecates) — successor: POST…
  • Ollama-dialect generate (NDJSON stream) — successor: POST /v1/chat/completions
  • Ollama-dialect loaded-model list — successor: GET /v1/models/state
  • Ollama-dialect model pull (NDJSON progress) — successor: POST…
  • Ollama-dialect per-model detail — successor: GET /v1/models/installed
  • Ollama-dialect installed-model list — successor: GET /v1/models/installed
  • Ollama-dialect version probe — successor: GET /version
  • GET not supported for MCP
  • Handle MCP JSON-RPC request
  • Terminate an MCP session
  • Retired ambient bootstrap
  • Health check
  • Answer a parked interactive tool approval
  • The agent-turn features this ToolPiper enforces
  • A conversation's latest run
  • Per-session agent event stream (SSE)
  • List agent-touched file paths under a workspace root
  • Clear a reviewed agent touch
  • The durable review payload for one agent-touched file
  • Start one interactive agent-kernel turn
  • Stop the session's in-flight turn
  • End an Ask session
About · Contact · Privacy