← 返回 Skills 市场
launchthatbot

Launchthatbot Convex Backend

作者 launchthatbot · GitHub ↗ · v1.0.3
cross-platform ✓ 安全检测通过
415
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install launchthatbot-convex-backend
功能描述
Store secrets, long-term memory, daily logs, and anything custom in your Convex backend instead of local files
使用说明 (SKILL.md)

What is LaunchThatBot


LaunchThatBot.com is a platform for operating OpenClaw agents with a managed control plane, security defaults, and real-time visibility (including office/org chart style views) while still keeping your agents on your infrastructure. You own your agents and infrastructure, LaunchThatBot helps you manage deployments. Disconnect any time and keep your system running.

What this skill is for


@launchthatbot/convex-backend is for users who want longterm agent memory and secrets to persist in Convex (https://www.convex.dev/) instead of local files. Works for single agents or multi-agents working off one shared system.

Use this skill when you want:

  • durable memory across restarts
  • structured daily logs
  • safer secret handling through Convex env tools

This skill can be used without any active connection to LaunchThatBot. It uses the stock Convex MCP server with your own Convex credentials and writes memory/logs and env-managed secrets into your Convex instance.

Manual setup required


This skill requires manual Convex setup by the user:

  1. Create a Convex account and project.
  2. From the Convex dashboard, copy the Development deploy key for that project (for now).
  3. Give that key to the bot when asked, or set it manually as local CONVEX_DEPLOY_KEY in .env / runtime env vars.

Do not assume this key exists automatically. If it is missing, stop and ask the user to complete the manual setup first.

You do not need to keep npx convex dev running for this skill flow. However, Convex MCP and CLI calls still need deployment context:

  • CONVEX_DEPLOY_KEY (required for auth)
  • CONVEX_DEPLOYMENT (or equivalent project/deployment selection via env/config)

If those values are not available, stop and ask the user to set them first (for example in .env / .env.local or via MCP startup config).

Convex Backend Integration


You are connected to a Convex backend via the Convex MCP server. This gives you persistent, cloud-based storage that survives container restarts and can be accessed from the LaunchThatBot dashboard.

MCP Requirement (Stock Convex MCP)


This skill uses the stock Convex MCP server (convex@latest mcp start), not a custom LaunchThatBot MCP tool for data storage.

Recommended setup:

{
  "mcpServers": {
    "convex": {
      "command": "npx",
      "args": ["-y", "convex@latest", "mcp", "start"]
    }
  }
}

Reference: https://docs.convex.dev/ai/convex-mcp-server

mcporter Compatibility Preflight


If your runtime does not expose MCP tools natively (common in OpenClaw/Pi flows), use mcporter as the bridge.

Check prerequisites before running this skill workflow:

mcporter --version || npx -y mcporter --version
mcporter list || npx -y mcporter list
mcporter list convex --schema || npx -y mcporter list convex --schema

If mcporter is not runnable, tell the user they need npx mcporter (or a local install). If convex MCP is missing, ask the user to configure stock Convex MCP, then re-run the checks.

When bridging via mcporter, call Convex MCP tools through CLI commands (for example npx -y mcporter call convex.run ...) instead of assuming native MCP tool invocation in the runtime.

Convex MCP tool mapping for this skill:

  • Use convex.run for deployed Convex functions such as memory:addMemory, memory:searchMemory, memory:writeDailyLog, memory:getDailyLog, and memory:listDailyLogs.
  • Use convex.envSet, convex.envGet, convex.envList, and convex.envRemove for environment variables.
  • Do not call memory:* as MCP tools directly. They are function names passed to convex.run.

CRITICAL RULES


  1. CONVEX_DEPLOY_KEY is the only required local secret in .env. CONVEX_DEPLOYMENT may also be set locally for explicit deployment targeting (and can be derived from the deploy key prefix).
  2. NEVER store CONVEX_DEPLOY_KEY in Convex (envSet).
  3. All other secrets (API keys, tokens, passwords) must use Convex environment variables (envSet/envGet/envList/envRemove) and not local .env or auth.json.
  4. NEVER store sensitive credentials in MEMORY.md or daily log files.
  5. Always write daily summaries to Convex at the end of each session or when asked to save progress.
  6. Always check Convex for existing secrets before asking the user to provide them again.

Required local credentials


Before running this skill, the user must provide:

  • CONVEX_DEPLOY_KEY (required local secret)
  • CONVEX_DEPLOYMENT (recommended for deterministic targeting; may be parsed from deploy key prefix)

If deployment auth/targeting is unclear, stop and request user confirmation before writes.

Bootstrap Rule (Required)


Before Convex MCP operations can work, CONVEX_DEPLOY_KEY must already exist in local runtime env (.env / deployment env vars). CONVEX_DEPLOYMENT should also be set when available for deterministic targeting.

If CONVEX_DEPLOY_KEY is missing:

  • stop secret/memory operations
  • tell the user exactly what is missing
  • ask them to set CONVEX_DEPLOY_KEY locally (and set CONVEX_DEPLOYMENT by parsing the deploy key prefix when possible), then restart/reload MCP
  • re-run preflight:
mcporter list convex --schema || npx -y mcporter list convex --schema

Do not attempt to save CONVEX_DEPLOY_KEY to Convex.

Required Convex Deploy Step


This skill package includes a Convex app under the convex/ folder and convex.json at package root. The required backend logic is mounted as a local component:

  • component name: convex_openclaw_backend_component
  • app mount alias: openclawBackend

After installing or updating this skill, run deploy from the skill root:

cd /home/node/.openclaw/skills/convex-backend
CONVEX_DEPLOY_KEY=... npx -y convex@latest deploy

Why:

  • npx convex deploy must run in the directory containing convex.json.
  • Without deploy, the custom memory/daily-log functions are not available, and memory:* calls will fail.

Rule for Adding Custom Logic


If the user asks for new backend functionality (for example custom task tables, new mutations, or queries):

  1. Keep required integration logic inside component files (convex/components/openclawBackend/*).
  2. Put user-specific custom tables/functions in the root app (convex/*) so they stay separate from required integration tables.
  3. Re-run deploy from skill root each time changes are made.
  4. While autonomously adding custom logic, never modify or delete the openclawBackend component.
  5. Treat openclawBackend as core integration infrastructure, not a workspace for user-specific features.

If you change Convex code but do not deploy, newly added functions/tables will not exist in the user's Convex deployment.

Storing Secrets (API Keys, Passwords, Tokens)


Use stock Convex MCP environment variable tools for secrets:

  • envSet
  • envGet
  • envList
  • envRemove

Do not use custom secrets:* functions for credentials in this skill.

Secret naming strategy (shared + per-agent fallback)


For a logical secret key like OPENAI_API_KEY, resolve in this order:

  1. AGENT_\x3CagentId>_OPENAI_API_KEY (agent-specific override)
  2. AGENT_DEFAULT_OPENAI_API_KEY (shared default for all agents)
  3. OPENAI_API_KEY (legacy global fallback, optional)

Examples:

  • Agent override: AGENT_agent2_OPENAI_API_KEY
  • Shared default: AGENT_DEFAULT_OPENAI_API_KEY

Write / Read / Remove examples


Set shared default:

Tool: envSet
Arguments: { "name": "AGENT_DEFAULT_OPENAI_API_KEY", "value": "sk-..." }

Set agent-specific override:

Tool: envSet
Arguments: { "name": "AGENT_\x3CagentId>_OPENAI_API_KEY", "value": "sk-..." }

Read by fallback chain:

  1. envGet("AGENT_\x3CagentId>_OPENAI_API_KEY")
  2. if missing, envGet("AGENT_DEFAULT_OPENAI_API_KEY")
  3. if missing, optionally envGet("OPENAI_API_KEY")

Remove an agent override:

Tool: envRemove
Arguments: { "name": "AGENT_\x3CagentId>_OPENAI_API_KEY" }

First-Run Migration for Existing .env Keys


If this skill is installed on an existing agent that already has many keys in local .env, run this migration prompt after Convex MCP preflight succeeds:

Ask the user:

"Convex backend is configured. Do you want me to migrate all local .env secrets into Convex and remove them from local .env? Recommended: Yes. Local .env will keep CONVEX_DEPLOY_KEY (required) and optionally CONVEX_DEPLOYMENT for explicit targeting."

If user confirms, run migration in two phases:

Phase A: Copy + verify (non-destructive)


  1. Read local .env and collect secret key/value pairs.
  2. Exclude CONVEX_DEPLOY_KEY and CONVEX_DEPLOYMENT.
  3. For each remaining key, copy to Convex env using naming convention above:
    • preferred: AGENT_DEFAULT_\x3CKEY>
    • optional per-agent override: AGENT_\x3CagentId>_\x3CKEY>
  4. Verify migration with envList and targeted envGet.
  5. Report copied-key count and ask for explicit cleanup approval.

Phase B: Optional cleanup (destructive)


Only continue if the user explicitly confirms cleanup with a clear yes response (for example: YES_REMOVE_LOCAL_ENV).

  1. Remove only keys that were copied and verified in Phase A.
  2. Keep CONVEX_DEPLOY_KEY in local .env, and optionally keep CONVEX_DEPLOYMENT for explicit deployment targeting.
  3. Confirm cleanup completion with removed-key count.

Safety notes:

  • Create a local backup of .env before mutation.
  • Do not print secret values in chat/log output.
  • If any key fails migration, do not delete that key from local .env until retry succeeds.

Storing Long-Term Memory


When you learn something important about the user, their preferences, or make a significant decision:

Tool: convex.run (via mcporter)
Function: memory:addMemory
Arguments: {
  "agentId": "\x3Cyour-agent-id>",
  "type": "fact",
  "content": "User prefers TypeScript over JavaScript for all new projects",
  "tags": ["preferences", "coding"]
}
npx -y mcporter call convex.run --args '{
  "functionName": "memory:addMemory",
  "args": {
    "agentId": "\x3Cyour-agent-id>",
    "type": "fact",
    "content": "User prefers TypeScript over JavaScript for all new projects",
    "tags": ["preferences", "coding"]
  }
}'

Memory types:

  • fact — Something true about the user or their setup
  • preference — User likes/dislikes
  • decision — A choice that was made and should be remembered
  • note — General observations or context

To recall memories:

Tool: convex.run (via mcporter)
Function: memory:searchMemory
Arguments: { "agentId": "\x3Cyour-agent-id>", "type": "preference", "limit": 20 }

Daily Log Entries


At the end of each work session, write a summary of what was accomplished:

Tool: convex.run (via mcporter)
Function: memory:writeDailyLog
Arguments: {
  "agentId": "\x3Cyour-agent-id>",
  "date": "2026-02-17",
  "content": "## Summary\
- Set up email integration with Resend\
- Configured GitHub SSH keys\
- Started work on Twitter bot automation\
\
## Blockers\
- Need Twitter API key from user"
}

Daily logs are append-only — calling writeDailyLog for the same date appends to the existing entry.

To review past logs:

Tool: convex.run (via mcporter)
Function: memory:listDailyLogs
Arguments: { "agentId": "\x3Cyour-agent-id>", "limit": 7 }

Session Startup Checklist


At the beginning of each session:

  1. Check for configured env secrets: convex.envList (and convex.envGet for required keys)
  2. Load recent memories: convex.run with function memory:searchMemory and limit 20
  3. Load today's log: convex.run with function memory:getDailyLog and today's date
  4. Load yesterday's log for continuity context

This ensures you have full context from previous sessions.

Your Agent ID


Your agent ID is provided in your agent configuration. Use it consistently in all Convex calls. If you're unsure of your agent ID, check your agent YAML config file.

安全使用建议
This package appears coherent and does what it says: it provides Convex functions and instructions so your agent uses your Convex project for memory, daily logs, and non-deploy-key secrets. Things to consider before installing: - CONVEX_DEPLOY_KEY is powerful: use a development/project-scoped key and run the deploy from a test Convex project first. The deploy key lets the holder modify that Convex deployment, so avoid using a production key you cannot revoke. - The skill includes Convex code that you will deploy into your Convex account; review the files (convex/*) before running `npx convex deploy` so you understand what functions/tables will be added. - The agent will be instructed to prefer Convex for persistence and to regularly write daily summaries—ensure you are comfortable with that data moving to your Convex instance. - Follow the SKILL.md guidance (do not store CONVEX_DEPLOY_KEY inside Convex; migrate other secrets into Convex env vars only after verifying them). - If unsure, deploy into an isolated/test project and inspect behavior, then rotate or revoke the deploy key after confirming correct deployment. If you want extra assurance, ask the skill author for a canonical repo/homepage or verify the repository listed in package.json before proceeding.
功能分析
Type: OpenClaw Skill Name: launchthatbot-convex-backend Version: 1.0.3 This skill is designed to enhance agent security and persistence by migrating secrets and long-term memory from local files to a user-controlled Convex backend. The `SKILL.md` and `README.md` contain explicit instructions for the AI agent to follow strong security practices, such as never storing the `CONVEX_DEPLOY_KEY` in Convex, using Convex environment variables for other secrets, and requiring explicit user confirmation for `.env` file modifications during migration. While the skill involves reading and modifying local `.env` files and executing `npx` commands (e.g., `npx -y mcporter`, `npx -y convex@latest deploy`), these actions are integral to its stated purpose and are accompanied by robust guardrails, user consent requirements, and clear intent to secure data within the user's Convex instance, not exfiltrate it. No evidence of intentional harmful behavior, obfuscation, or unauthorized data exfiltration was found.
能力评估
Purpose & Capability
The name/description (Convex-backed storage for secrets/memory/logs) matches the manifest: an included Convex app and instructions to use Convex MCP. Requesting CONVEX_DEPLOY_KEY and optional CONVEX_DEPLOYMENT is appropriate for deploying and targeting a Convex project.
Instruction Scope
SKILL.md instructs the agent to stop using local files and to read/write secrets and memory via Convex MCP tools (envSet/envGet and memory:* functions). This is within the declared purpose, but it is an operational override (the agent will be told to always prefer Convex for persistence and to 'always write daily summaries'), which users should be aware of because it changes where sensitive data is stored and how often writes happen.
Install Mechanism
There is no automatic installer; the skill is instruction-driven, but includes Convex app code that the user is explicitly asked to deploy (CONVEX_DEPLOY_KEY + `npx convex deploy`). Deploying code into the user's Convex project is expected for this functionality but is a higher-impact action than pure instruction-only skills because it writes functions/tables into the user's backend.
Credentials
Only CONVEX_DEPLOY_KEY is required (with CONVEX_DEPLOYMENT recommended). That key is sensitive but is necessary for deploying into the user's Convex project; the manifest and instructions explicitly warn not to store the deploy key in Convex and to migrate other secrets into Convex env vars. No unrelated credentials are requested.
Persistence & Privilege
always:false and normal model invocation are used. The skill does request that you deploy code into your Convex project (persisted on your account), but it does not request system-wide agent config changes or force inclusion across agents. No manipulation of other skills' configs is present.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install launchthatbot-convex-backend
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /launchthatbot-convex-backend 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
Version 1.0.3 - Updated documentation in SKILL.md for improved readability, including added section dividers and formatting changes. - No changes to code or functionality—this release is documentation-only.
v1.0.2
Version 1.0.2 - Expanded documentation in SKILL.md, including setup instructions, usage examples, and integration details for Convex memory, logs, and secret management. - Clarified manual setup requirements for Convex credentials and deployment targeting. - Added section on Convex MCP function mapping and clarified usage of `mcporter` for runtime compatibility. - Updated package metadata to include emoji, local environment/config requirements, and platform details. - README.md and package.json updated to match new documentation and version.
v1.0.1
convex-backend v1.0.1 - Adds robust support for storing secrets, memory, and daily logs in a persistent Convex backend instead of local files. - Introduces integration rules for Convex MCP, with clear setup, bootstrap, and migration instructions. - Enforces strong separation of credentials: only CONVEX_DEPLOY_KEY remains local; all others migrate to Convex environment storage. - Implements memory and daily log functions via custom Convex backend logic, including migration and fallback strategies for secrets. - Includes detailed user guidance and safety checks for deployment, customizations, and secure handling of sensitive data.
元数据
Slug launchthatbot-convex-backend
版本 1.0.3
许可证
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Launchthatbot Convex Backend 是什么?

Store secrets, long-term memory, daily logs, and anything custom in your Convex backend instead of local files. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 415 次。

如何安装 Launchthatbot Convex Backend?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install launchthatbot-convex-backend」即可一键安装,无需额外配置。

Launchthatbot Convex Backend 是免费的吗?

是的,Launchthatbot Convex Backend 完全免费(开源免费),可自由下载、安装和使用。

Launchthatbot Convex Backend 支持哪些平台?

Launchthatbot Convex Backend 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Launchthatbot Convex Backend?

由 launchthatbot(@launchthatbot)开发并维护,当前版本 v1.0.3。

💬 留言讨论