convex-agent

convex-agent is a skill for Claude Code, Codex from openclaw/clawhub. It costs 25 tokens per session (227 once invoked), scanned A, original, MIT.

A backend for adding an in-app AI agent to a Convex application, with conversation threads, saved messages, tool calls, and document search. RAG means finding relevant passages in your own documents before generating an answer.

In plain words
What is it for?
Use it to define an AI agent, stream replies, save conversation history, call tools, and retrieve relevant content from an indexed document collection.
Why use it?
It provides a place to keep conversations and search data for the agent, instead of building those parts separately. It also keeps the language-model key on the server.

Skill for Claude CodeCodex

About the project

ClawHub is a public registry where OpenClaw users publish, version, search, and install text-based agent skills and OpenClaw packages. It provides web browsing, a CLI-oriented API, moderation, vector search, and artifact hosting for code plugins, bundle plugins, and experimental whole-agent packages. The catalogue skills and agents are entries that can be discovered or used through this registry.

openclaw/clawhub · 9,391 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/openclaw/clawhub/convex-agent
Any agent
npx skills add openclaw/clawhub --skill convex-agent
Clone the repo
git clone --depth 1 https://github.com/openclaw/clawhub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for convex-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/openclaw/clawhub/convex-agent.svg)](https://agentmods.dev/skills/openclaw/clawhub/convex-agent)
Your own site
<a href="https://agentmods.dev/skills/openclaw/clawhub/convex-agent"><img src="https://agentmods.dev/badge/skills/openclaw/clawhub/convex-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 227 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.00227
Opus 5 $0.00013 $0.00113
Sonnet 5 $0.00005 $0.00045
Haiku 4.5 $0.00003 $0.00023

Measured 5d ago against content hash d903a27a7d0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

convex-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/convex-agent/SKILL.md · 24 lines

What it actually says

Add an AI agent / RAG backend

Install @convex-dev/agent for durable threads, message history, tool-calls, and vector search/RAG — the backend for an in-app AI agent.

Workflow

  1. Install @convex-dev/agent + add to convex.config.ts.
  2. Define the agent (model, tools, instructions); store the LLM key via the env micro power.
  3. Create threads + stream messages; persist history in Convex.
  4. For RAG: embed docs into a vector index and retrieve in the tool.

Rules

  • Keep the LLM API key in Convex env (use the env micro power), never client-side.
  • Run model calls in actions ('use node' if the SDK needs it).
  • Persist threads/messages in Convex for durability + reactivity.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 24 lines · 25 tokens per session scan A d903a27a7d0b

Subscribe to this mod's changes

convex-agent is a skill published in the GitHub repository openclaw/clawhub (9,391 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 227 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

doc-parse

将 PDF/PPT/Excel/Word 等多格式文档解析为结构化 Markdown,并输出元数据与解析置信度,作为 RAG 与四色卡片的数据底座。.

anbeime/skill · 43 tokens

retrieve

Search a knowledge base using Amazon Bedrock RAG (Retrieval-Augmented Generation). Use when users want to find information from uploaded documents, ask questions about stored knowledge, or retrieve relevant content from the knowledge base. Returns matched content with source references and URLs.

kyopark2014/agent-plugins · 54 tokens

chatbi-mvp

Use when building a ChatBI (conversational BI) MVP from scratch, need to understand the 5 core capabilities (NL2SQL, multi-turn dialogue, RAG knowledge base, data visualization, intelligent attribution), or want to reference SuperSonic's architecture to guide implementation.

yugef3h/leo-skills · 61 tokens

deepseek-v4-flash-vision-video-rag

基于DeepSeek视觉大模型(deepseek-v4-flash-vision-exp)的视频理解与问答(video RAG)。当用户提到视频、录像、mp4、监控、游戏录像、影片、动画,并想提问、查找、定位、总结或理解其内容,或问"什么时候发生的""某一秒在干什么"、要时间戳定位、片段回放时,使用本skill。支持剧情理解、事件时间线、OCR字幕/HUD识别;回答带 [MM:SS] 时间戳引用,并生成可播放片段与关键帧展示给用户。无音频分析能力。.

liangdabiao/deepseek-v4-flash-vision-video-rag · 153 tokens

graphify

Turn any folder of files into a navigable knowledge graph with community detection, an honest audit trail, and three outputs: interactive HTML, GraphRAG-ready JSON, and a plain-language GRAPHREPORT.md.

kyopark2014/agent-plugins · 27 tokens

embeddings

Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support. 75x faster with agentic-flow integration. Use when: semantic search, pattern matching, similarity queries, knowledge retrieval. Skip when: exact text matching, simple lookups, no semantic understanding needed.

ruvnet/ruflo · 62 tokens