Manus
简介
Manus
原始描述
Manus AI Agent API integration with managed API key authentication. Create and manage AI agent tasks, projects, files, and webhooks. Use this skill when user...
通过你的 Agent 添加
安装目录:manus-67446/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: manus
description: |
Manus AI Agent API integration with managed API key authentication. Create and manage AI agent tasks, projects, files, and webhooks.
Use this skill when users want to run AI agent tasks, manage projects, upload files, or set up webhooks with Manus.
For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
compatibility: Requires network access and valid Maton API key
metadata:
author: maton
version: "1.0"
clawdbot:
emoji:
homepage: "https://maton.ai"
requires:
env:
- MATON_API_KEY
Manus
Access the Manus AI Agent API with managed API key authentication. Create and manage AI agent tasks, projects, files, and webhooks.
Quick Start
# Create a task
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'prompt': 'What is the capital of France?'}).encode()
req = urllib.request.Request('https://api.maton.ai/manus/v1/tasks', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Base URL
https://api.maton.ai/manus/{native-api-path}
# Create a task
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'prompt': 'What is the capital of France?'}).encode()
req = urllib.request.Request('https://api.maton.ai/manus/v1/tasks', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
https://api.maton.ai/manus/{native-api-path}
Maton proxies requests to api.manus.ai and automatically injects your API key.
Authentication
All requests require the Maton API key in the Authorization header:
Authorization: Bearer $MATON_API_KEY
Environment Variable: Set your API key as MATON_API_KEY:
export MATON_API_KEY="YOUR_API_KEY"
Getting Your API Key
- Sign in or create an account at maton.ai
- Go to maton.ai/settings
- Copy your API key
Connection Management
Manage your Manus API key connections at https://api.maton.ai.
List Connections
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=manus&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Create Connection
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'manus'}).encode()
req = urllib.request.Request('https://api.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=manus&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'manus'}).encode()
req = urllib.request.Request('https://api.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"connection": {
"connection_id": "{connection_id}",
"status": "ACTIVE",
"creation_time": "2026-02-28T00:12:24.030143Z",
"last_updated_time": "2026-02-28T00:16:08.920760Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "manus",
"metadata": {},
"method": "API_KEY"
}
}
Open the returned url in a browser to enter your Manus API key.
Delete Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Specifying Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple Manus connections, specify which one to use with the Maton-Connection header:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/manus/v1/tasks')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple connections, always include this header to ensure requests go to the intended account.
Security & Permissions
- Access is scoped to tasks, browser sessions, files, and agent executions within the connected Manus account.
- All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
API Reference
Projects
List Projects
GET /manus/v1/projects
Projects
GET /manus/v1/projects
Response:
{
"object": "list",
"data": [
{
"id": "SJhyBaLtYgQwurQoaT5APi",
"name": "My Project"
}
]
}
Create Project
POST /manus/v1/projects
Content-Type: application/json
{
"name": "My Project",
"default_instructions": "You are a helpful assistant."
}
POST /manus/v1/projects
Content-Type: application/json
{
"name": "My Project",
"default_instructions": "You are a helpful assistant."
}
Response:
{
"id": "SJhyBaLtYgQwurQoaT5APi",
"object": "project",
"name": "My Project",
"created_at": "1772238309"
}
Tasks
List Tasks
GET /manus/v1/tasks
Response:
{
"object": "list",
"data": [
{
"id": "X7PPAMPNRovuyTXejNeEpv",
"object": "task",
"created_at": "1772191227",
"updated_at": "1772191230",
"status": "completed",
"model": "manus-1.6-lite-adaptive",
"metadata": {
"task_title": "What is 2+2?",
"task_url": "https://manus.im/app/X7PPAMPNRovuyTXejNeEpv"
},
"output": [...],
"credit_usage": 0
}
]
}
Get Task
GET /manus/v1/tasks/{task_id}
GET /manus/v1/tasks/{task_id}
Response:
{
"id": "X7PPAMPNRovuyTXejNeEpv",
"object": "task",
"created_at": "1772191227",
"updated_at": "1772191230",
"status": "completed",
"model": "manus-1.6-lite-adaptive",
"metadata": {
"task_title": "What is 2+2?",
"task_url": "https://manus.im/app/X7PPAMPNRovuyTXejNeEpv"
},
"output": [
{
"id": "J9LlYFIfTlMWvR5hrC9FUL",
"status": "completed",
"role": "user",
"type": "message",
"content": [
{
"type": "output_text",
"text": "What is 2+2? Reply in one word."
}
]
},
{
"id": "kR8Tj0ys7uwzorcSgzqMvZ",
"status": "completed",
"role": "assistant",
"type": "message",
"content": [
{
"type": "output_text",
"text": "Four"
}
]
}
],
"credit_usage": 0
}
Task status values: pending, running, completed, failed
Create Task
POST /manus/v1/tasks
Content-Type: application/json
{
"prompt": "What is the capital of France?"
}
POST /manus/v1/tasks
Content-Type: application/json
{
"prompt": "What is the capital of France?"
}
Optional fields:
project_id(string): Associate task with a projectfile_ids(array): Attach files to the task
Response:
{
"task_id": "3cbKzkyC9WwRoMwAH8dKuY",
"task_title": "Capital of France?",
"task_url": "https://manus.im/app/3cbKzkyC9WwRoMwAH8dKuY"
}
Delete Task
DELETE /manus/v1/tasks/{task_id}
DELETE /manus/v1/tasks/{task_id}
Response:
{
"id": "3cbKzkyC9WwRoMwAH8dKuY",
"object": "file",
"deleted": true
}
Files
List Files
GET /manus/v1/files
Returns the 10 most recently uploaded files.
Response:
{
"object": "list",
"data": [
{
"id": "file-2Gpoz5yhB8seSu9dxZdquR",
"object": "file",
"filename": "test.txt",
"status": "pending",
"created_at": "1772238309",
"expires_at": "1772411109"
}
]
}
File status values: pending, ready, expired
Get File
GET /manus/v1/files/{file_id}
GET /manus/v1/files/{file_id}
Response:
{
"id": "file-2Gpoz5yhB8seSu9dxZdquR",
"object": "file",
"filename": "test.txt",
"status": "pending",
"created_at": "1772238309",
"expires_at": "1772411109"
}
Create File
Creates a file record and returns a presigned S3 upload URL.
POST /manus/v1/files
Content-Type: application/json
{
"filename": "document.pdf"
}
Response:
{
"id": "file-2Gpoz5yhB8seSu9dxZdquR",
"object": "file",
"filename": "document.pdf",
"status": "pending",
"upload_url": "https://vida-private.s3.us-east-1.amazonaws.com/...",
"upload_expires_at": "1772238489",
"created_at": "1772238309"
}
Upload your file to the upload_url using a PUT request within the expiration time.
Delete File
DELETE /manus/v1/files/{file_id}
DELETE /manus/v1/files/{file_id}
Response:
{
"id": "file-2Gpoz5yhB8seSu9dxZdquR",
"object": "file",
"deleted": true
}
Webhooks
Create Webhook
Register a webhook URL to receive task lifecycle notifications.
POST /manus/v1/webhooks
Content-Type: application/json
{
"webhook": {
"url": "https://example.com/webhook"
}
}
Response:
{
"webhook_id": "J4dD3mwzZiWuJFiEWAvGnK"
}
Delete Webhook
DELETE /manus/v1/webhooks/{webhook_id}
DELETE /manus/v1/webhooks/{webhook_id}
Response:
{}
Code Examples
JavaScript
// Create a task
const response = await fetch(
'https://api.maton.ai/manus/v1/tasks',
{
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.MATON_API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ prompt: 'Summarize the latest news' })
}
);
const data = await response.json();
console.log(data.task_url);
Python
import os
import requests
# Create a task
response = requests.post(
'https://api.maton.ai/manus/v1/tasks',
headers={
'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
'Content-Type': 'application/json'
},
json={'prompt': 'Summarize the latest news'}
)
task = response.json()
print(task['task_url'])
Notes
- Tasks are executed asynchronously. Use
GET /manus/v1/tasks/{task_id} to poll for completion or set up a webhook
- File uploads use presigned S3 URLs that expire within 3 minutes
- Files expire after ~48 hours if not used
- Webhook payloads are signed with RSA-SHA256 for verification
- Available models:
manus-1.6, manus-1.6-lite, manus-1.6-max, manus-1.5, manus-1.5-lite, speed
- Connection uses API_KEY authentication method (not OAuth)
Error Handling
Status
Meaning
400
Invalid request (missing required fields, invalid format)
401
Invalid or missing Maton API key
404
Resource not found
4xx/5xx
Passthrough error from Manus API
Troubleshooting: API Key Issues
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Troubleshooting: Invalid App Name
import os
import requests
# Create a task
response = requests.post(
'https://api.maton.ai/manus/v1/tasks',
headers={
'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
'Content-Type': 'application/json'
},
json={'prompt': 'Summarize the latest news'}
)
task = response.json()
print(task['task_url'])
- Tasks are executed asynchronously. Use
GET /manus/v1/tasks/{task_id}to poll for completion or set up a webhook - File uploads use presigned S3 URLs that expire within 3 minutes
- Files expire after ~48 hours if not used
- Webhook payloads are signed with RSA-SHA256 for verification
- Available models:
manus-1.6,manus-1.6-lite,manus-1.6-max,manus-1.5,manus-1.5-lite,speed - Connection uses API_KEY authentication method (not OAuth)
Error Handling
Status
Meaning
400
Invalid request (missing required fields, invalid format)
401
Invalid or missing Maton API key
404
Resource not found
4xx/5xx
Passthrough error from Manus API
Troubleshooting: API Key Issues
| Status | Meaning |
|---|---|
| 400 | Invalid request (missing required fields, invalid format) |
| 401 | Invalid or missing Maton API key |
| 404 | Resource not found |
| 4xx/5xx | Passthrough error from Manus API |
- Check that the
MATON_API_KEYenvironment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Troubleshooting: Invalid App Name
Ensure your URL path starts with manus. For example:
- Correct:
https://api.maton.ai/manus/v1/tasks - Incorrect:
https://api.maton.ai/v1/tasks
Resources
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。