Jump to related tools in the same category or review the original source on GitHub.

Web & Frontend Development @generaljerel Updated 6/28/2026 997 downloads 0 stars Security: Pass

Copilotkit Runtime Patterns OpenClaw Plugin & Skill | ClawHub

Looking to integrate Copilotkit Runtime Patterns into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate web & frontend development tasks instantly, without having to write custom tools from scratch.

What this skill does

Server-side runtime patterns for CopilotKit. Use when setting up CopilotKit runtime endpoints (Express, Hono, Next.js), configuring remote agent endpoints, adding middleware, or securing the runtime. Triggers on backend tasks involving @copilotkit/runtime, CopilotRuntime, agent registration, or API endpoint configuration.

Install

ClawHub CLI
openclaw skills install @generaljerel/copilotkit-runtime-patterns
Node.js (npx)
npx clawhub@latest install copilotkit-runtime-patterns

Full SKILL.md

Open original
Metadata table.
namedescriptionlicense
copilotkit-runtime-patternsServer-side runtime patterns for CopilotKit. Use when setting up CopilotKit runtime endpoints (Express, Hono, Next.js), configuring remote agent endpoints, adding middleware, or securing the runtime. Triggers on backend tasks involving @copilotkit/runtime, CopilotRuntime, agent registration, or API endpoint configuration.MIT

SKILL.md content below is scrollable.

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

Priority Category Impact Prefix
1 Endpoint Setup CRITICAL endpoint-
2 Agent Configuration HIGH runner-
3 Middleware MEDIUM middleware-
4 Security HIGH security-
5 Performance MEDIUM perf-

Quick Reference

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

ClawHub Registry URL: https://clawhub.ai/generaljerel/skills/copilotkit-runtime-patterns

Related skills

If this matches your use case, these are close alternatives in the same category.