# Send CopilotKit-Runtime-Patterns to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "copilotkit-runtime-patterns",
    "name": "CopilotKit-Runtime-Patterns",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/GeneralJerel/copilotkit-runtime-patterns",
    "canonicalUrl": "https://clawhub.ai/GeneralJerel/copilotkit-runtime-patterns",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/copilotkit-runtime-patterns",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=copilotkit-runtime-patterns",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "metadata.json",
      "README.md",
      "SKILL.md",
      "rules/runner-inmemory-vs-sqlite.md",
      "rules/security-rate-limiting.md",
      "rules/endpoint-hono-setup.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "copilotkit-runtime-patterns",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T20:35:38.071Z",
      "expiresAt": "2026-05-07T20:35:38.071Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=copilotkit-runtime-patterns",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=copilotkit-runtime-patterns",
        "contentDisposition": "attachment; filename=\"copilotkit-runtime-patterns-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "copilotkit-runtime-patterns"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/copilotkit-runtime-patterns"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns",
    "downloadUrl": "https://openagent3.xyz/downloads/copilotkit-runtime-patterns",
    "agentUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent",
    "manifestUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.md"
  }
}
```
## Documentation

### CopilotKit Runtime Patterns

Server-side runtime configuration patterns. Contains 15 rules across 5 categories.

### When to Apply

Reference these guidelines when:

Setting up CopilotKit runtime endpoints (Express, Hono, Next.js API routes)
Configuring CopilotRuntime with service adapters (OpenAIAdapter, etc.)
Registering agents via remote endpoints (LangGraph, CrewAI)
Adding middleware for logging, auth, or request modification
Securing the runtime (CORS, auth, rate limiting)
Optimizing runtime performance

### Rule Categories by Priority

PriorityCategoryImpactPrefix1Endpoint SetupCRITICALendpoint-2Agent ConfigurationHIGHrunner-3MiddlewareMEDIUMmiddleware-4SecurityHIGHsecurity-5PerformanceMEDIUMperf-

### 1. Endpoint Setup (CRITICAL)

endpoint-express-setup - Configure Express endpoint with CopilotRuntime and CORS
endpoint-hono-setup - Configure Hono endpoint for edge runtimes
endpoint-nextjs-route - Set up Next.js API route with copilotRuntimeNextJSAppRouterEndpoint

### 2. Agent Configuration (HIGH)

runner-inmemory-vs-sqlite - Use persistent storage for production thread management
runner-agent-registration - Register agents via remoteEndpoints
runner-multiple-agents - Configure routing for multi-agent setups

### 3. Middleware (MEDIUM)

middleware-before-request - Use onBeforeRequest for auth, logging, context injection
middleware-after-request - Use onAfterRequest for response logging and cleanup
middleware-error-handling - Handle errors in middleware without crashing the runtime

### 4. Security (HIGH)

security-cors-config - Configure CORS for your specific frontend origin
security-auth-middleware - Authenticate requests before agent execution
security-rate-limiting - Rate limit by user or API key

### 5. Performance (MEDIUM)

perf-streaming-response - Ensure streaming is not buffered by proxies

### Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: GeneralJerel
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T20:35:38.071Z
- Expires at: 2026-05-07T20:35:38.071Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/copilotkit-runtime-patterns)
- [Send to Agent page](https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent)
- [JSON manifest](https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.md)
- [Download page](https://openagent3.xyz/downloads/copilotkit-runtime-patterns)