Skip to content

ClickRuntime for opencode

From an opencode session to a live webhook or cron job

Ask opencode to catch webhooks from your payment provider, run a sync every night, or watch a page for changes. ClickRuntime runs it for you with run history, retries and alerts, whichever model you use in opencode.

About 2 minutes to connect. Free plan, no credit card.

Setup · about 2 minutes

Connect ClickRuntime to opencode

Add ClickRuntime to opencode.json as a remote server and sign in with opencode mcp auth.
  1. Add ClickRuntime to opencode.json in your project, or to ~/.config/opencode/opencode.json for every project.

    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "clickruntime": {
          "type": "remote",
          "url": "https://clickruntime.com/api/mcp"
        }
      }
    }
  2. Sign in. Your browser opens the ClickRuntime sign-in; choose a workspace and approve.

    opencode mcp auth clickruntime
  3. Check it's connected, then start opencode and ask for an automation.

    opencode mcp list

Try it

A first automation to ask opencode for

Copy the prompt, change the details to suit you, and you'll have a job running in a few minutes.

run scripts/sync_customers.py every night at 2 on clickruntime and email me the row count

  1. A draft is savedopencode calls ClickRuntime and saves a draft. A draft does nothing on its own.
  2. You connect what it needsSlack, Google or an API key are connected once in the ClickRuntime application. Keys never go into the chat.
  3. You stay in controlYou allow each action in your assistant's permission prompt. Before a live run it tells you what starts it and every service it will contact. Every run is logged.
  4. It runs on its ownIt keeps running on ClickRuntime's servers with opencode closed, and tells you when something fails.
opencode · ~/code/crm
clickruntime_save_draft
Saved draft "Nightly customer sync". It runs at 02:00 and emails you the number of rows synced. Approve it to go live.
Confirm linkhttps://clickruntime.com/confirm/…
ClickRuntimeCheck what will be deleted and confirm. The link works once and expires after 30 minutes.

What people do with it

Automations people set up from opencode

Monitoring, reports, alerts, syncing apps and AI on text. Each one opens a template you can add in one message.
Any web page → Slack

Watch a competitor's pricing page

Checks a pricing page every hour and posts a short summary to Slack only when something changes.

Slack · #marketAcme Pro went from $49 to $59 a month, and “unlimited seats” was removed.
Marketing · ~720 runs a monthUse template →
Stripe → Google Sheets

Log Stripe payments to Google Sheets

Every successful Stripe payment is added as a new row in a Google Sheet within seconds.

Google Sheets · PaymentsRow 1,284 · 12 Oct · jo@northwind.com · $129.00 · Pro annual
Finance · One run per eventUse template →
GitHub → Slack

Triage new GitHub issues

Each new issue gets an AI summary and suggested label, posted to your team's Slack channel.

Slack · #engbug · Login loop after password reset on iOS 18 (#318)
Engineering and product · One run per eventUse template →
Any web page → Email to you

Check SSL certificates before they expire

Every Monday, your domains' certificates are checked and you get an email if any expire within 14 days.

Email · Certificatesapp.example.com expires in 9 days (21 Oct).
Engineering and product · ~4 runs a monthUse template →
Shopify → Slack

Post yesterday's Shopify orders to Slack

Every weekday at 9, yesterday's order count and revenue are posted to your sales channel.

Slack · #salesYesterday: 47 orders, $6,320 revenue. Largest order #1092 ($540).
E-commerce · ~22 runs a monthUse template →
Stripe → Email to you

Weekly revenue summary from Stripe

Every Friday at 17:00 you get an email with the week's revenue, new customers and cancellations.

Email · Weekly numbersWeek 41: $18,240 revenue (+3.1%), 9 new customers, 4 cancellations.
Finance · ~4 runs a monthUse template →

More things to ask opencode

  • Run scripts/sync_customers.py every night at 2 on ClickRuntime and email me the row count.

  • Create a ClickRuntime automation: watch our pricing page and tell me in Slack when anything on it changes.

  • Create a ClickRuntime automation: set up a webhook for Paddle subscription events that logs cancellations to a sheet.

  • Create a ClickRuntime automation: show the last 10 runs of my nightly sync and anything unusual in the logs.

Apps

Apps your opencode automations can use

Slack, Google and Microsoft connect with one sign-in. Anything else with an API, a webhook or a web page works with a saved key.
  • Slack
  • Google Calendar
  • Shopify
  • Notion
  • Telegram
  • Asana
  • Dropbox
  • Calendly
  • WordPress
  • QuickBooks
  • Bitbucket
  • Evernote
  • Square
  • Wix
  • Mailgun
  • Sentry
  • MySQL
  • Firebase
  • Cloudflare
  • Instagram
  • Spotify
  • Miro
  • Substack
  • Product Hunt
  • Pinterest
  • Etsy
  • Wise
  • Gusto
  • RSS feeds
  • Google Sheets
  • Stripe
  • Typeform
  • Airtable
  • Jira
  • Mailchimp
  • Discord
  • Zendesk
  • WhatsApp
  • Google Docs
  • Figma
  • Box
  • WooCommerce
  • Squarespace
  • Brevo
  • Datadog
  • MongoDB
  • Vercel
  • X
  • YouTube
  • Google Analytics
  • Confluence
  • Ghost
  • Mastodon
  • TikTok
  • eBay
  • Coinbase
  • Okta
  • Gmail
  • GitHub
  • HubSpot
  • Google Drive
  • Trello
  • Zoom
  • Linear
  • Intercom
  • Xero
  • GitLab
  • Todoist
  • PayPal
  • BigCommerce
  • Webflow
  • PagerDuty
  • PostgreSQL
  • Supabase
  • Netlify
  • Facebook
  • Reddit
  • Google Ads
  • Bitly
  • Medium
  • Bluesky
  • Twitch
  • Revolut
  • Zoho
  • Auth0
View all apps

Your control

What you control in opencode

opencode can build, deploy, run, test and change an automation, and keeps fixing it until a run succeeds. You allow each action in opencode's own permission prompt, and before a live run it tells you what it will send or change outside ClickRuntime. Keys are added only by you in the ClickRuntime dashboard, you can pause any automation at any time, and every run is logged.

Deleting needs one more step: in opencode you confirm through a one-time link that opens ClickRuntime in your browser.

opencode · ~/code/crm
clickruntime_save_draft
Saved draft "Nightly customer sync". It runs at 02:00 and emails you the number of rows synced. Approve it to go live.
Confirm linkhttps://clickruntime.com/confirm/…
ClickRuntimeCheck what will be deleted and confirm. The link works once and expires after 30 minutes.

After it's live

Checking on and changing automations from opencode

No dashboard needed. Ask opencode in plain words, from any conversation, and it answers from the automation's run history.
  • Check status

    Ask whether an automation ran, when it runs next and how its recent runs went. opencode lists your automations with their state: live, paused or needing setup.

    Ask opencode“Which of my ClickRuntime automations failed in the last 24 hours?”

  • Find out why a run failed

    opencode reads the run's error and log lines, explains them in plain words and proposes a fix. You also get an email when a run fails.

    Ask opencode“Show me the logs from the last failed run and fix the script.”

  • Change what it does

    Move the time, add a recipient or change the logic. opencode applies the new version, tests it and tells you what changed. Every version is kept.

    Ask opencode“Make the health check time out after 10 seconds instead of 30.”

  • Pause and resume

    Pausing takes effect immediately, and you can pause from the ClickRuntime dashboard too. Events sent while paused are kept.

    Ask opencode“Pause every automation that calls the staging API.”

  • Run it now

    Trigger a one-off run to test a change or catch up after an outage. The schedule stays as it is, and the run counts toward your monthly runs.

    Ask opencode“Run the scraper once now and show me the output.”

  • Clean up

    Find automations you no longer need and delete them. Deleting removes the automation, its runs and its trigger link, so you confirm it first.

    Ask opencode“List automations that haven't succeeded this month and delete the old test ones.”

Help

opencode: troubleshooting and questions

Still stuck? See troubleshooting or contact support.

Checking the connection
opencode mcp list shows every server and whether it's signed in. opencode mcp debug clickruntime tests the connection.
Removing it
Delete the clickruntime entry from opencode.json (or set enabled to false), run opencode mcp logout clickruntime, then disconnect opencode under Settings → AI assistants in the ClickRuntime application.
Does it matter which model I use in opencode?
No. Any model that can call MCP tools works. ClickRuntime checks every script before it can go live, whichever model wrote it.
Sign-in fails or loops. How do I debug it?
Run opencode mcp debug clickruntime to test the connection and sign-in discovery, then opencode mcp logout clickruntime and opencode mcp auth clickruntime to start fresh.
How do I approve actions?
opencode asks for your permission before each tool call that turns an automation on, runs it or applies a change. Deleting one needs a one-time link that you open in your browser to confirm.

Set up your first automation in opencode

Free plan. No credit card.