NowAI Developer Documentation (nowai.cc.cd / cc.cd)

Welcome to the NowAI Developer portal. This document describes the integration options, REST API reference, CLI tools, plugin systems, and Model Context Protocol (MCP) configurations.

1. Quick Start / 快速入门

NowAI provides a lightweight SDK to programmatically sync clipboards and capture inspirations.

npm install @now/sdk
import { NowClient } from '@now/sdk';

const now = new NowClient({
  apiKey: 'YOUR_SECRET_TOKEN'
});

now.on('copy', (content) => {
  console.log('Captured:', content.text);
});

2. REST API Reference / API 参考

OpenAPI 3.0 specification is available at openapi.json.

Get Clipboard History: GET /v1/clipboard/history

{
  "status": "success",
  "data": [
    {
      "id": "clip_88x2",
      "text": "Hello World",
      "timestamp": 1739568000
    }
  ]
}

3. Now CLI / 命令行工具

# Search clipboard
now find "tailwind config" --copy

# Push to device
now push --to iphone-16

4. Plugin System / 插件系统

Extend NowAI desktop client menus, keyboard shortcuts, or parsing logic using TypeScript or Lua.

5. Window API / 窗口控制 API

Method Return Type Description
show() Promise<void> Shows and focuses the plugin window.
hide() Promise<void> Hides the plugin window.
setSize(w, h) Promise<void> Sets window size.
capturePage() Promise<NativeImage> Captures page screenshot.

6. Model Context Protocol (MCP) / AI 插件

Connect local AI agents to your NowAI clipboards using the Streamable HTTP transport standard.

Claude Desktop configuration: claude_desktop_config.json

{
  "mcpServers": {
    "now-ai": {
      "command": "C:\\Path\\To\\Now.exe",
      "args": ["--mcp"]
    }
  }
}

Available tools: list_cards, search_cards, create_card.