CopilotKit-Runtime-Patterns

PassAudited by VirusTotal on May 11, 2026.

Overview

Type: OpenClaw Skill Name: copilotkit-runtime-patterns Version: 1.0.1 The skill bundle provides documentation and code examples for configuring CopilotKit runtimes, explicitly focusing on best practices for endpoint setup, agent configuration, middleware, security, and performance. The `SKILL.md` and `AGENTS.md` files serve as guidelines for AI agents to follow when maintaining or generating code. Notably, the 'Security' section in `AGENTS.md` actively educates on how to prevent critical vulnerabilities like unauthenticated endpoints, wildcard CORS, and lack of rate limiting. There is no evidence of malicious intent, data exfiltration, unauthorized execution, or prompt injection attempts designed to harm the agent or system.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If copied into an application, authentication tokens will be sent to the runtime endpoint and must be protected from logging, model exposure, or unauthorized access.

Why it was flagged

The skill recommends passing an authentication token to the CopilotKit runtime for middleware validation. This is expected for securing the endpoint, but it is sensitive credential-bearing data.

Skill content
<CopilotKit runtimeUrl="/api/copilotkit" properties={{ authToken: session.token }} />
Recommendation

Use HTTPS, validate tokens server-side, keep tokens out of prompts and logs, and ensure the runtime only accepts tokens from trusted frontends.

What this means

User requests and agent metadata may flow between the runtime and remote agent services configured by the application.

Why it was flagged

The skill describes routing CopilotKit requests to remote agent endpoints. This is central to the purpose, but remote agent communication needs clear trust boundaries.

Skill content
Register your agents with the runtime using `remoteEndpoints`. This enables the runtime to discover available agents, route requests to the correct agent, and provide agent metadata to the frontend.
Recommendation

Only configure trusted remote endpoints, authenticate service-to-service traffic where possible, and avoid sending sensitive user data to untrusted agents.

What this means

Conversation history may be retained across restarts and reused in later interactions.

Why it was flagged

The skill recommends persistent conversation/thread storage. This is expected for production CopilotKit use, but persisted conversation history can contain sensitive or poisonable context.

Skill content
In production, configure thread persistence so conversation history survives server restarts.
Recommendation

Define retention, access controls, tenant separation, and cleanup policies for persisted conversation state.

What this means

A CopilotKit runtime endpoint can consume LLM budget or trigger agent actions if exposed without controls.

Why it was flagged

The skill discusses exposing a runtime endpoint that can invoke LLM/agent capabilities and recommends rate limiting. This is appropriate guidance, but it highlights that the endpoint can have cost and abuse impact if misconfigured.

Skill content
Add rate limiting to your CopilotKit runtime endpoint to prevent individual users from exhausting your LLM budget.
Recommendation

Follow the skill’s own security guidance: require authentication, configure CORS to specific origins, and rate limit by user or API key.