Sponsored by Deepsite.site

Sleepwalker

创建者
followantona month ago
内容

Sleepwalker

CI MIT CLI npm version Zero dependencies MCP ready

AI Visibility and Content Intelligence for agents, products, and teams.
Run AI-search checks, inspect citations, score content, and save every result in one workspace.

Website · App · Docs · MCP · API · CLI · Cookbook


Sleepwalker helps teams understand how AI systems talk about a brand and what content needs to change. It combines two connected workflows:

  • AI Visibility: run prompts across ChatGPT, Perplexity, Grok, and Gemini; capture full answers, citations, competitors, and mention types.
  • Content Intelligence: serialize public pages, discover demand, score content depth and freshness, and return practical recommendations.

You can run the same work from the hosted app, the public API, MCP clients, or the CLI. Results stay connected, so a run started by an agent can be reviewed later in the app or queried from code.

This repository is the public developer surface for Sleepwalker: CLI package, API examples, MCP setup notes, and short guides. The hosted engine, app source, database schema, provider integrations, and billing systems are private.

Quickstart

Try the CLI without an account first. okf export is free and open source. It runs on your machine, fetches a page, and writes an agent-ready markdown bundle to a local folder. No API key, no credits:

npx -y @sleepwalkerai/cli okf export https://www.sleepwalker.ai

For everything else, install the CLI:

npm install -g @sleepwalkerai/cli
sleepwalker init

Create an API key in the Sleepwalker app, then run your first visibility check:

sleepwalker auth key set sw_api_live_...
sleepwalker doctor
sleepwalker visibility run https://yourbrand.com \
  --brand YourBrand \
  --prompt "best ai visibility platform 2026" \
  --platform perplexity,openai,grok,gemini \
  --watch

Sleepwalker CLI running an AI Visibility check

Want to see the shape of the data first? Open docs/responses.md for full example outputs from serialization, prompt suggestions, AI Visibility, Content Intelligence, and report lookup.

What you can build

Sample AI Visibility result across platforms

  • AI search (GEO) monitoring: set up prompt tracking for specific URLs across ChatGPT, Perplexity, Grok, and Gemini.
  • Agent workflows: give MCP clients such as Claude access to LLM answers, cited domains, competitor performance, and content trends.
  • Product integrations: use the API from internal tools, client portals, reporting pipelines, or automated QA checks.
  • Content review: inspect what a page says, which trends it misses, and what to fix first.
  • Free page export: turn any public page into agent-ready markdown with okf export. Open source, runs locally, no account needed.
  • Custom workflows: combine Sleepwalker with other MCP servers to build your own skills and automations.

Access paths

SurfaceBest forEntry point
AppHuman review, credits, keys, and full result viewsapp.sleepwalker.ai
APIScripts, products, scheduled jobs, and reporting workflowsAPI docs
MCPClaude and other MCP-capable agentsMCP setup
CLITerminal workflows and automationCLI docs

Sleepwalker action flow across app, API, MCP, and CLI

Run Sleepwalker from anywhere

CLI

sleepwalker visibility run https://yourbrand.com \
  --brand YourBrand \
  --prompt "best ai visibility platform 2026" \
  --platform perplexity,openai,grok,gemini \
  --watch

API

curl -s https://api.sleepwalker.ai/v1/visibility/runs \
  -H "Authorization: Bearer $SLEEPWALKER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://yourbrand.com",
    "target_entity": "YourBrand",
    "prompts": ["best ai visibility platform 2026"],
    "platforms": ["perplexity","openai","grok","gemini"]
  }'

MCP

https://mcp.sleepwalker.ai/mcp

Ask an MCP-capable client: Check how YourBrand appears across AI search this week.

App

Open app.sleepwalker.ai for the visual workflow, saved results, credits, and keys.

Developer resources

PathWhat it shows
docs/agents.mdMCP tool catalog and agent workflow walkthrough
docs/concepts.mdRuns, probes, serialization, scoring, credits
docs/cli.mdCLI usage, including the free local okf export
docs/cookbook.mdRunnable workflows, including CI checks
docs/responses.mdFull example outputs for the main Sleepwalker actions
mcp/server.jsonRemote MCP server manifest
mcp/tools.jsonPublic MCP tool catalog, scopes, and credit behavior
examples/api/curlOne-call examples for public API actions
examples/api/javascriptRaw fetch plus a zero-dependency client helper
examples/api/pythonurllib examples plus a small client class
examples/mcpOAuth and bearer-token setup notes

Credits

Sleepwalker is pay as you go. Reads, lists, and status polling are normally unmetered. Actions that run work, such as visibility checks, content scoring, and serialization, use prepaid credits. okf export is the exception: it runs locally and is always free. Details live in docs/credits.md and the hosted billing docs.

Repository boundary

This repository is intentionally small.

Public herePrivate in Sleepwalker
CLI, examples, setup notes, short docsHosted engine and app source
Public API request shapesMCP server implementation
MCP client connection examplesDatabase schema and billing internals
Product-level credit behaviorProvider integrations and routing

Do not commit real keys. Use environment variables or the CLI key store:

export SLEEPWALKER_API_KEY=sw_api_live_...

服务器配置

{
  "mcpServers": {
    "sleepwalker": {
      "type": "streamable-http",
      "url": "https://mcp.sleepwalker.ai/mcp"
    }
  }
}
推荐的 MCP Server
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Amap Maps高德地图官方 MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Serper MCP ServerA Serper MCP Server
Playwright McpPlaywright MCP server
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™