Use Better Stack with Codex

The Better Stack plugin puts our AI SRE in Codex and ChatGPT, with its skills and every Better Stack tool. It's free on every Better Stack plan.

Once it's connected, ask Codex to:

  • Check every new release and tell you whether it's healthy, so you know when to hotfix or roll back.
  • Investigate what broke in your logs, metrics, traces, and errors, with charts right in the chat.
  • Change your dashboards, and roll any change back in one click.

Connect Codex to Better Stack

ChatGPT

  1. Open Plugins in the sidebar and find Better Stack.
  2. Click + to install it.
  3. Connect Better Stack when asked and sign in with your Better Stack account.
  4. Start a new chat.

Codex CLI

Add the Better Stack marketplace and install the plugin:

Install the Better Stack plugin in Codex
codex plugin marketplace add BetterStackHQ/codex-plugin
codex plugin add betterstack@betterstack

Sign in with your Better Stack account in the browser that opens, then start a new Codex session:

Sign in to Better Stack
codex mcp login betterstack

Check every release with Codex

Add a scheduled task that checks each new release in Better Stack. It compares your errors before and after the release and tells you whether the release looks healthy.

  1. Connect Better Stack in ChatGPT.
  2. Start a new chat and paste this prompt, with your error tracking application filled in:
Prompt to check every release
Create a scheduled task named "Release check with Better Stack" that runs every hour. Each run: use the Better Stack plugin to find new releases of my Better Stack error tracking application <application> since the previous run. For each release, compare that application's errors in the hour before and after the release, and post whether the release looks healthy, with links to any new errors. Read only: change nothing in Better Stack. After creating it, do one run right now that covers the last 10 days of releases.

Codex creates the task and runs it once over your recent releases. Later runs show up in Scheduled in the sidebar.

What will Codex change?

Nothing. The release check only reads your Better Stack data and reports back.

Find out what broke

Something wrong after a release? Ask Codex to investigate. It digs through your logs, metrics, traces, and errors, and draws charts right in the chat.

Prompt to investigate a release
Using the Better Stack plugin: something looks wrong after release <release> of my error tracking application <application>. Investigate what broke and show me a chart of that application's errors over time around the release. Read only.

Let Codex manage your dashboards

Ask Codex to change a chart on one of your dashboards.

Prompt to change a chart
Using the Better Stack plugin, on dashboard <dashboard>: change the "<chart>" chart from a bar chart to a line chart. Do only that.

Each change Codex makes shows in the dashboard's Activity, at the top of the dashboard, as " updated via MCP". Click Rollback next to a change to roll the dashboard back to before it.

Need help?

Please let us know at hello@betterstack.com.
We're happy to help! πŸ™