How to connect Codex (terminal)

2 min readUpdated: November 24, 2026

One command in the terminal, the sign-in opens by itself. On a machine without a browser — a key in an environment variable.

On this page

What you need

  • Any plan: on the Starter plan the assistant imports a file without saving it, on the Professional plan it saves the import to your account, and on the Ultra plan it also calculates the tax from your account. See pricing
  • Codex CLI installed on your computer.
  • A browser on the same computer — you sign in there. Without a browser, use a key (at the bottom of the page).

Step 1. Add the server

Type in the terminal:

codex mcp add podatekgieldy \
  --url https://podatekgieldy.pl/mcp

Step 2. Sign in

The browser opens by itself: sign in at podatekgieldy.pl, tick what Codex may do and click «Allow». If it did not open, type:

codex mcp login podatekgieldy

Step 3. Ask

Ask in the Codex session, e.g. “How much tax will I pay for 2026?” (on the Ultra plan). More first questions

Without a browser: an access key

On a computer without a browser, put the key in an environment variable and add the server — paste the key from Settings → MCP in place of pg_mcp_xxx (how to create it):

export PODATEKGIELDY_TOKEN=pg_mcp_xxx
codex mcp add podatekgieldy \
  --url https://podatekgieldy.pl/mcp \
  --bearer-token-env-var PODATEKGIELDY_TOKEN

Treat the key like a password: do not paste it into a chat with the assistant and do not commit it to a repository.