← Back to blog

launchthatbot

How Convex Mode Works: Tables, Secrets, and Crons for OpenClaw

A concrete walkthrough of what happens when you enable Convex Mode -- what gets created, what OpenClaw uses it for, and what you own.

Feb 17, 2026LaunchThatBot Team
MOFUIndie Devs

Ready to apply this in your own deployment?

Start a deployment

The previous article explained why OpenClaw deployments need a real backend. This one shows exactly what Convex Mode does when you turn it on.

No vague "integration" language. Here is the specific flow, what gets created, and what you retain ownership of.

Enabling Convex Mode

When you create or manage an OpenClaw deployment through LaunchThatBot, Convex Mode is one of the template options. Enabling it takes three steps:

  1. Connect your Convex project. You provide your Convex deployment URL. This can be a free-tier Convex instance -- there is no minimum plan requirement.
  2. LaunchThatBot installs the Convex skill. A pre-built set of Convex functions (queries, mutations, and scheduled jobs) is deployed to your Convex instance. These functions define the schema, the operational workflows, and the cron schedules.
  3. OpenClaw starts using your Convex instance. Where it makes sense, your OpenClaw deployment reads and writes operational data through your Convex backend instead of relying on local files or ad hoc storage.

After setup, your Convex dashboard shows the tables, functions, and scheduled jobs that were created. You can inspect, query, and modify them directly.

What the database tables handle

Convex Mode creates structured tables for operational state that would otherwise scatter across your deployment:

Deployment records

Every deployment gets a record in your Convex database. This includes the provider, region, configuration snapshot, creation timestamp, and current status. When you have multiple deployments, you can query all of them from one place instead of SSHing into individual machines.

Runtime event log

Agent activity, tool executions, errors, and status transitions get logged to a structured event table. This gives you a queryable history of what your agents actually did, when they did it, and whether they succeeded.

This replaces the common pattern of grepping through log files on a VPS. The data is structured, indexed, and accessible from the Convex dashboard or through API queries.

Provider connection metadata

When your OpenClaw instance connects to external services (LLM providers, APIs, databases), the connection metadata lives in your Convex tables. Status, last-verified timestamp, and configuration references are all in one place.

How secret workflows change

Convex Mode does not magically make secrets secure. What it does is create a structured workflow for managing secrets instead of leaving it to .env files and manual processes.

Here is the difference:

Without Convex Mode:

  • API keys live in .env files on each VPS
  • Rotation means SSH into the server, edit the file, restart the process
  • No record of when a key was last rotated
  • No way to verify consistency across deployments

With Convex Mode:

  • Secret references are stored in Convex tables with metadata (created date, last rotated, associated deployment)
  • Rotation workflows can be triggered from the management dashboard or through scheduled functions
  • Rotation history is logged, creating an audit trail
  • Consistency across deployments is queryable

This is a deliberate design choice. We want the operational workflow around secrets to be structured and auditable without putting the secret values themselves in a general-purpose database.

What the cron jobs do

Convex has built-in support for scheduled functions that run on intervals or cron expressions. Convex Mode uses this for recurring operational tasks:

Key rotation reminders

A scheduled function checks the age of secret references and flags any that are past their rotation window. This does not rotate keys automatically (that would be risky without operator confirmation), but it creates visibility into what needs attention.

Cleanup jobs

Old event log entries, stale deployment records, and expired session data get cleaned up on a schedule. This prevents the slow accumulation of data that makes queries slower and storage costs higher over time.

Health checks

Periodic functions verify that connected providers are still responding, that deployment status is current, and that critical configuration has not drifted from the expected state.

Integrity verification

Scheduled checks compare the actual state of your deployments against the expected state recorded in Convex tables. Drift detection catches problems before they become incidents.

What you see in the Convex dashboard

After enabling Convex Mode, your Convex project dashboard shows:

  • Tables with your deployment records, event logs, and provider metadata
  • Functions including the queries, mutations, and actions that Convex Mode installed
  • Scheduled jobs with their run history, next scheduled execution, and any errors
  • Logs for every function execution

This is your data in your dashboard. LaunchThatBot does not have a separate admin view into your Convex instance. You see exactly what exists and can modify anything directly.

What this costs

Convex offers a free tier that is generous enough for most solo developers running a handful of OpenClaw deployments. The tables, functions, and scheduled jobs created by Convex Mode fit comfortably within free-tier limits for typical use.

If you scale to many deployments or high event volumes, Convex's paid tiers apply. But the pricing is between you and Convex -- LaunchThatBot does not add markup or require a specific plan.

References

Ready to apply this in your own deployment?

Start a deployment

Related articles

Feb 16, 2026

Why Your OpenClaw Needs a Real Backend

OpenClaw generates state, secrets, and scheduled tasks. Without a structured backend, that stuff scatters into .env files and manual scripts. Here is why that breaks.

Feb 18, 2026

How to Build an MCP Server with Cloudflare and Convex

We built an MCP server that lets AI coding agents manage LaunchThatBot deployments from inside Cursor. Here is the architecture: a TypeScript MCP server, a Cloudflare Worker proxy, and Convex as the backend. No REST API required.