用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bholmesdev/warp-agent-skills --skill warp命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | warp |
| description | Use Warp's REST API and command line to run, configure, and inspect Warp cloud agents |
Use the Warp REST API and CLI to:
The Warp CLI is installed as warp. To get help output, use warp help or warp help <subcommand>. Prefer --output-format text to review the response, or --output-format json to parse fields with jq. You can find more information at https://docs.warp.dev/platform/cli.
The most important commands are:
warp agent run-cloud: Spawn a new cloud agent. You can configure the prompt, model, environment, and other settings.warp run list and warp run get <run-id>: List all cloud agent runs, and get details about a particular run. This includes the session link to view that session in the cloud.warp environment list and warp environment get: List available environments, and get more information about a particular environment.warp schedule list and warp schedule get: List scheduled tasks with most recent runs, and get more information about a particular scheduled run.Most subcommands support the --output-format json flag to produce JSON output, which you can pipe into jq or other commands.
Start a cloud agent, and then monitor its status:
$ warp agent run-cloud --prompt "Update the login error to be more specific" --environment UA17BXYZ
# ...
Spawned agent with run ID: 5972cca4-a410-42af-930a-e56bc23e07ac
$ warp run get 5972cca4-a410-42af-930a-e56bc23e07ac
# ...
Schedule an agent to summarize feedback every day at 8am UTC:
$ warp schedule create --cron "0 8 * * *" \
--prompt "Collect all feedback from new GitHub issues and provide a summary report" \
--environment UA17BXYZ
Create a secret for cloud agents to use:
$ warp secret create JIRA_API_KEY --team --value-file jira_key.txt --description "API key to access Jira"
Warp has a REST API for starting and inspecting cloud agents.
All API requests require authentication using an API key. The user can generate API keys in their Warp settings, on the Platform page (accessible via {{warp_url_scheme}}://settings/platform).
You can find the full OpenAPI specification here: https://docs.warp.dev/platform/agent-api-and-sdk/agent.md
In addition, there are SDKs for:
All SDKs have sync and async support, and documentation at the links above.
curl -L -X POST {{warp_server_url}}/api/v1/agent/run \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Update the login error to be more specific",
"config": {
"environment_id": "UA17BXYZ"
}
}'
curl -L -X GET {{warp_server_url}}/api/v1/agent/runs/5972cca4-a410-42af-930a-e56bc23e07ac \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
You can trigger Warp cloud agents from GitHub Actions workflows. This enables automation like:
Use warpdotdev/warp-agent-action@v1 in your workflow. Required inputs:
prompt: The task description for the agentwarp_api_key: API key (store in GitHub secrets, e.g., ${{ secrets.WARP_API_KEY }})profile: Optional agent profile identifier (can use repo variable, e.g., ${{ vars.WARP_AGENT_PROFILE || '' }})The action outputs agent_output with the agent's response.
name: Run Warp Agent
on:
issues:
types: [opened, labeled]
jobs:
agent:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: warpdotdev/warp-agent-action@v1
id: agent
with:
prompt: |
Analyze the GitHub issue and provide a summary.
Issue: ${{ github.event.issue.title }}
${{ github.event.issue.body }}
warp_api_key: ${{ secrets.WARP_API_KEY }}
profile: ${{ vars.WARP_AGENT_PROFILE || '' }}
- name: Use Agent Output
run: echo "${{ steps.agent.outputs.agent_output }}"
Conditional steps: Use if: steps.agent.outputs.agent_output to branch on agent results.
Templating: Use actions/github-script@v7 to construct dynamic prompts from issue templates, repo context, or code.
Error handling: Check action success with if: success() or if: failure().
Git operations: The action runs with checked-out code and Git credentials, so agents can commit and push changes.
All cloud agents run in an environment. The environment defines:
npm install or cargo fetchYou should almost always run cloud agents in an environment. Otherwise, they may not have the necessary code or tools available.
Cloud agents run in a sandbox, so they can install additional programs into their environment. They also have Git credentials to create PRs and push branches.
Cloud environments DO NOT store secret values, like API keys. Use the warp secret commands instead.
For detailed guidance on creating environments with warp environment create, see create-environment.md. This includes: