ChatGPT and Codex

Connect Lahuta to ChatGPT as a custom MCP server, or to Codex with one command.

OpenAI has two ways to use Lahuta. In ChatGPT, you add Lahuta as a custom MCP server from Plugins. In Codex, OpenAI's coding agent, you add it with a command or a few lines of config.

ChatGPT

ChatGPT adds outside servers like Lahuta on the web, not in its mobile apps. What you can do depends on your plan:

  • On Business, Enterprise and Edu, ChatGPT can use all of Lahuta's tools. On Business, only admins and owners can add a server. On Enterprise and Edu, admins can also let other members add one.
  • On Pro, ChatGPT can use the tools that look things up, but not the ones that make changes.

OpenAI's help article Connecting custom MCP servers in ChatGPT has the current list.

Select the button. It copies the server URL and opens Plugins in ChatGPT in a new tab.

Add to ChatGPT

Copies the URL to paste in ChatGPT.

Select the plus button, then Add custom MCP server.

Enter Lahuta as the name and, if you like, a short description, like "Northside Pottery's contacts, events and shop".

Under Connection, paste the server URL:

https://api.lahuta.org/mcp

For authentication, choose OAuth. Lahuta doesn't need a client ID or secret.

Read the risk warning, select I understand and want to continue, then Create as a plugin.

Install the new Lahuta plugin from your plugins. When ChatGPT opens Lahuta's sign-in page, now or the first time you use it, sign in with your Lahuta account. If you belong to more than one organization and Lahuta asks you to pick one, any of them works. ChatGPT can reach all your organizations, and you name the one you want in each request.

To use it, start a new chat, type @ in the message box and select Lahuta. It helps to name it in your request: "Use Lahuta to list this week's orders."

ChatGPT asks you to confirm before any tool that makes a change, and shows the exact input it's about to send. Read it before you approve. You can remember your answer for the rest of that conversation, and a new conversation asks again.

Menus look different?

ChatGPT changes its settings pages often. If these labels don't match what you see, follow OpenAI's guide Add custom MCP server. The URL and the sign-in stay the same.

Codex

The Codex CLI, the Codex IDE extension and the ChatGPT desktop app share one configuration, so adding Lahuta once makes it available in all three.

Add the server:

codex mcp add lahuta --url https://api.lahuta.org/mcp

Sign in. Adding the server doesn't start sign-in by itself, so run:

codex mcp login lahuta

Your browser opens at Lahuta's sign-in page. Sign in with your Lahuta account and pick an organization if asked. The connection works in all of your organizations either way.

Check it's there with codex mcp list, or run /mcp inside Codex to see active servers.

Ask before changes

The command above writes an entry to ~/.codex/config.toml. You can edit that entry to control when Codex asks for approval:

[mcp_servers.lahuta]
url = "https://api.lahuta.org/mcp"
default_tools_approval_mode = "writes"

With writes, Codex runs tools marked read-only without asking and prompts before everything else. Lahuta marks every lookup tool as read-only, so Codex can search and report freely but stops before it creates, sends or deletes anything. We recommend this setting.

On this page