Blog
Hex is now in Codex
You can bring Hex directly into Codex to run analyses, pull in existing work, and spin up new projects.

A lot of people are asking which tools should be used for AI analytics. There are a lot of them out there! Coding agents, productivity tools, fancy new BI tools. At Hex, we want you to be able to analyze data from wherever you do your job. And we’re working hard on building our leading analytics agents and our unique approach to context into the places our customers are working.
Today, we’re excited to be part of Open AI’s launch for Codex plugins. You can bring Hex directly into Codex to run analyses, pull in existing work, and spin up new projects.
There are a few ways you can take advantage of this new integration.
Kick off Hex analysis from Codex
The most direct path: ask Codex to run an analytics task and Hex handles the execution. Need to understand churn by segment? Dig into pipeline performance? Get a read on product usage trends? Codex can invoke Hex to pull the data, run analysis, and return results without switching tabs.
Pull Hex Threads into Codex
If you've already done analytical work in Hex, you shouldn't have to redo it just to reference it elsewhere. The MCP connection lets Codex pull in existing Hex threads as context, so when you're doing analysis, writing a report, or prepping for a meeting, your prior work in Hex is right there.
Control Hex programmatically using the CLI
For more specific, structured tasks - such as creating projects, adding cells, or configuring analysis - the CLI connection gives Codex a more precise interface into Hex. This is especially useful for teams that want to automate how analyses get set up, or who are building repeatable workflows around data. You can even ask Codex to migrate your existing BI projects to Hex for you 🤔.
Hex and Codex, better together
Without context, an agent won't use the right data to answer a business question. Hex’s Context Studio brings the right business knowledge into any analysis: your data model, your metrics definitions, your existing work.
The Codex integration extends that same idea: now, when you're working in Codex, you're not starting from scratch. Your Hex analyses, your data, your context can inform whatever you build.
What you can do
A few of the workflows this opens up:
- Ad hoc analysis from Codex: Ask a question in natural language, have Codex invoke Hex to run the actual query and return results without leaving Codex.
- Automated project creation: Use the CLI to programmatically create Hex projects and cells as part of larger Codex-driven workflows.
Your Codex admin can turn on the Hex plugin in your workspace starting today. Give it a try and start including Hex into your workflows.
If this is is interesting, click below to get started, or to check out opportunities to join our team.


