Coze bots are powerful, but they live in the cloud. They can't read your local files, run terminal commands, or interact directly with your machine. Coze-Power solves this with a lightweight HTTP server that exposes local tools through a standard OpenAPI interface that Coze plugins can consume.
bash
cd coze-power
python3 server.py
# Server starts on http://localhost:8899
bash
# Using ngrok (recommended for beginners)
ngrok http 8899
# → https://xxxx.ngrok.io (copy this URL)
# Or using Cloudflare Tunnel
cloudflared tunnel --url http://localhost:8899
assets/openapi-spec.jsonhttps://xxxx.ngrok.io)X-API-Key, value from your config.jsonIn your Coze bot, try:
"Search the web for latest AI news" "List files on my desktop" "Show me the current system status"
ToolMethodEndpointDescriptionWeb SearchPOST/tools/web-searchSearch the web and return resultsRead FilePOST/tools/read-fileRead content from local filesWrite FilePOST/tools/write-fileWrite content to local filesList DirectoryPOST/tools/list-dirList files in a directoryRun CommandPOST/tools/run-commandExecute shell commandsSystem InfoPOST/tools/system-infoGet OS, CPU, memory infoRead ClipboardPOST/tools/clipboard-readRead clipboard contentsWrite ClipboardPOST/tools/clipboard-writeWrite to clipboardSend NotificationPOST/tools/notifySend desktop notificationHealth CheckGET/healthCheck server status
Create config.json in the skill directory:
json
{
"api_key": "your-secret-api-key",
"host": "0.0.0.0",
"port": 8899,
"allowed_commands": ["ls", "pwd", "cat", "echo", "python3", "node"],
"allowed_paths": ["/home", "/tmp"],
"max_file_size_kb": 1024
}
⚠️ You are exposing your local machine to the internet. Follow these rules:
allowed_commands and allowed_paths to restrict accessSee references/coze-plugin-setup.md for step-by-step Coze configuration.
See references/examples.md for real Coze bot prompts and expected behaviors.
See references/api-reference.md for complete endpoint documentation.