What do I need before I start?
You need the Codex command line tool, signed in with an OpenAI API key or a ChatGPT plan. Connecting Codex to Loopster is a separate sign-in, and the steps below cover it.
How do I connect Codex to Loopster?
Run this command in your terminal. Codex adds Loopster as a server and starts the sign-in itself.
codex mcp add loopster --url https://app.loopster.ai/api/mcp
Codex prints "Added global MCP server 'loopster'.", then "Detected OAuth support. Starting OAuth flow…", then "Authorize loopster by opening this URL in your browser:" with a link under it. Codex also opens your browser for you.
Loopster opens in your browser with the question "Connect Codex to Loopster?" The page says Codex "will be able to do what you can do in the workspace you pick: read and edit tables, run functions, and start enrichment", and that enrichment "spends from that workspace's wallet". Pick the workspace Codex should work in from the Workspace menu, then click Connect.
The browser shows "Authentication complete. You may close this window." Close it and go back to the terminal. Codex prints "Successfully logged in."
Start Codex, then type
/mcp. Codex lists Loopster as connected, with its tool count. For example, the line reads "loopster: connected (92 tools)".
How do I ask Codex to build a table?
Type your request in plain words. For example: "Find 5 software companies in the United States in Loopster Data and put them in a new table called MCP demo. Then add a Company profile column and run it. Keep the reply short."
Answer any approval prompts. Codex asks before it runs each Loopster tool that changes something. The next section explains the prompts.
Wait for Codex to finish. For this request it took about a minute. Codex then tells you what it built: a new table with five US software companies from Loopster Data, and a Company profile column that ran for all five rows.
Why does Codex ask before it runs a Loopster tool?
Codex asks before each Loopster tool that changes something. The prompt reads Allow the loopster MCP server to run tool "create_table"? The tool name changes from prompt to prompt.
For the requests in this article, Codex asks about tools such as create_table, update_column, trigger_rows and run_function.
Codex gives you four options:
Allow
Allow for this session
Always allow
Cancel
Some of the tools these prompts cover can spend from your wallet, so read the tool name before you choose Always allow.
Where is the new table, and what should I check?
In Loopster, go to Home. The new workbook is the top row. Click it, then open the table inside the workbook.
Check Auto-run. It is at the top left of the table toolbar. A new table can start with it on or off, so check every table.
Codex can switch Auto-run on, and in this example it did. The toolbar shows "Auto-run On", so rows added to the table later get the Company profile column automatically.
Company profile was free here. With Auto-run on, rows you add later are queued for processing, and that can spend from your wallet. To change the setting, see Run columns safely: Auto-run, test one row, then run the rest.
How do I let Codex run a function?
Codex can run a function only after you switch on Agents can run this function for it.
In Loopster, open the function's page. In the panel on the right, under Access permissions, switch on Agents can run this function. The help text under the switch ends with "Runs bill normally."
In Codex, ask it to run the function. For example: "Run the Company industry from domain function on hubspot.com."
Codex runs the function and tells you the result. For this function and this domain, it reports the industry as Information Technology.
Every step inside a function bills as it would in a table, for every input. To learn more about functions, see Functions and Sandbox Mode.
What if Codex says a function is not enabled for agent access?
If Agents can run this function is switched off, Codex cannot run the function. The run fails with a 403 error that says "This function is not enabled for agent access." Switch on Agents can run this function for that function, then ask Codex again.
How do I see which agents are connected, and disconnect Codex?
Open Settings, then Loopster API.
Find Connected agents. The page describes them as "AI agents authorized to use this workspace over MCP. Each acts with the permissions of the person who connected it." Codex has a row there.
Click Disconnect on the Codex row. You can disconnect an agent at any time.
How do I connect Codex with an API key instead?
Use an API key for scripts, or for tools that can't sign in.
Open Settings, then Loopster API. The Create a key form is on the same page, above Connected agents.
Type a name, pick a role, pick when the key ends, and click Create key. The roles are Member (read only), Editor (read, write and run) and Admin (everything an API key can do). For every field, see Create and revoke a Loopster API key.
Name the key after what will use it, and give it the least access it needs. The page says "Name it after what will use it. Give it the least access that integration needs."
You can tick Can't start paid work to stop the key from starting paid work.
A Loopster API key starts with loopster_sk_. The page says "Keep them secret; do not share them publicly."
Quit Codex by typing
/quit.Put your key in an environment variable. The command below uses the name
LOOPSTER_API_KEY. Then add the server with this command:
codex mcp add loopster --url https://app.loopster.ai/api/mcp --bearer-token-env-var LOOPSTER_API_KEY
The key stays in an environment variable, so it never appears in the command.
To cut a key off, click Revoke on its row under Settings, then Loopster API.
Can Codex spend from my wallet?
Yes. Tools that run enrichment or functions can spend from your workspace's wallet. The wallet holds real dollars, not credits. These tools can spend:
trigger_rowsruns enrichment. WithoutrowIdsit runs every row in the table.run_functionruns a function. Every step inside it bills as it would in a table, for every input.insert_rowsadds rows. It spends only when the table's Auto-run is on.create_tablespends for every starter type except blank, webhook and search.
In this example, the table and the function run cost nothing.
For ways to keep spending under control, see Your wallet and keeping spend under control and Connect Loopster to Claude Code and other AI tools (MCP).
Good to know
Codex works in the workspace you pick on the consent page, and it can do what you can do there.
Signing in through the browser needs no API key.
With an API key, the tools work in the workspace that owns the key.
Codex can list and run only the functions that are published and have Agents can run this function switched on.
More about the API and MCP:








