# Connect SynkedUP to Codex

> 👋 **Don't read this page. Hand it to your AI.** Everything below this box is written for Codex, not for you, and it is fine if it looks like Greek. Copy this page's link, paste it into a Codex thread, and say: **"Help me connect SynkedUP using these instructions."** Codex reads the whole page and walks you through the few parts only you can do (installing Codex, signing in, getting your token from SynkedUP, and one download). If you get stuck, contact SynkedUP support at [support@synkedup.com](mailto:support@synkedup.com).

_Connect your SynkedUP data (jobs, work areas, crew hours, and more) to Codex, OpenAI's coding agent. Ask questions in plain English like "How many hours did we log on the Johnson patio job last week?" and get instant answers, and a dashboard of your own numbers the moment you connect._

**Time to set up:** about 10 minutes

**You only have to do this once.**

> 💡 **Codex is not ChatGPT.** Codex is OpenAI's agent app and command-line tool, included with paid ChatGPT plans. It connects to SynkedUP with your token today. ChatGPT itself does not (see the note below). If your customer said "we want it in Chat", check which one they mean before you start.

> 🤖 **If you are Codex reading this:** this is SynkedUP's guide for connecting the user's account to Codex. Run the commands you can, and guide the user through the parts only they can do: installing, signing in, getting their token, and the report pack download in Step 5. Five rules. (1) Keep the token out of the conversation, and never print or read their settings file. (2) The server address is exactly `https://mcp-server.synkedup.com/mcp`; never guess another. (3) Fully quit Codex before its settings file is edited, because it reads that file at startup. (4) The report pack in Step 5 is installed by the user in a terminal BEFORE the first thread. Do not try to download it yourself mid-conversation: your own safety review refuses a download into the skills folder, and a refused install stalls the flow with the user watching. (5) Prove the connection with the Step 6 company-name test, never by listing tools, and **treat that test as a checkpoint, not the finish line.** The moment the real company name comes back, say **"Hang on a sec, pulling data and building your dashboards."** and build it, in the same thread, without a menu and without asking. Setup is not done until the user is looking at their dashboard. The full delivery rules are in Step 6.

---

## Before you start

You'll need three things:

1. **A ChatGPT plan that includes Codex.** Plus, Pro, Business, Enterprise or Edu. If you only have the free plan, you'll need to upgrade first at [chatgpt.com/pricing](https://chatgpt.com/pricing).
2. **Codex installed.** Either the **Codex app** on your computer, or the **Codex CLI** in your terminal. Both read the same settings file, so this guide covers both. See **Step 1**.
3. **Your SynkedUP connection token.** This is a private password-like key that links Codex to _your_ SynkedUP account. See **Step 2** for how to get it.

> 💡 **What about ChatGPT?** Not yet. ChatGPT only accepts connectors that sign in with OAuth, and SynkedUP's connection uses a token instead. We are looking at adding OAuth. Until then, Codex, Grok and Claude all work with the token you already have.

---

## Step 1: Install Codex and sign in

**Option 1: the Codex app (easiest).** Go to [**openai.com/codex**](https://openai.com/codex), download the app for your computer, open it, and sign in with your ChatGPT account.

**Option 2: the Codex CLI (terminal).** This needs the free Node.js helper first. Go to [**nodejs.org**](https://nodejs.org/), click **LTS**, and run the installer with the defaults. Then open Terminal (Mac) or PowerShell (Windows) and run:

```bash
npm install -g @openai/codex
```

Then run `codex` once and sign in with your ChatGPT account when it asks.

---

## Step 2: Get your SynkedUP connection token

Request your personal token from your SynkedUP Customer Success Manager ([support@synkedup.com](mailto:support@synkedup.com)).

> 🔒 **Keep this token private.** Treat it like a password. Anyone with it can view your SynkedUP data. Don't forward it or share it in a group chat. It ends up stored in plain text inside the Codex settings file, so don't paste that file's contents into chat windows, screenshots, support tickets, or other AI tools. If the token is ever exposed, contact SynkedUP support and we'll issue you a new one.

> ⚠️ **Copy carefully.** When you copy your token, triple-check that you got every character, including the very last one. A single missing character at the end is easy to miss and shows up later as a confusing "unauthorized" error.

---

## Step 3: Add the connection

Codex keeps its settings in one file, `config.toml`, inside a `.codex` folder in your home folder. The app, the CLI and the IDE extension all read this same file. **Option A is one command and is much harder to get wrong.**

> ⚠️ **Before either option, fully quit Codex** (the app, and any terminal where it is running). It reads this file when it starts.

### Option A: one command (recommended)

Copy the command for your computer into a blank note first, replace **`PASTE-YOUR-TOKEN-HERE`** with your token from Step 2, then paste the finished command into your terminal and press Enter.

**Mac (Terminal):**

```bash
mkdir -p ~/.codex && printf '\n[mcp_servers.synkedup]\nurl = "https://mcp-server.synkedup.com/mcp"\nhttp_headers = { "Authorization" = "Bearer PASTE-YOUR-TOKEN-HERE" }\n' >> ~/.codex/config.toml && echo Done
```

**Windows (PowerShell):**

```powershell
New-Item -ItemType Directory -Force "$env:USERPROFILE\.codex" | Out-Null; Add-Content -Path "$env:USERPROFILE\.codex\config.toml" -Value "`n[mcp_servers.synkedup]`nurl = `"https://mcp-server.synkedup.com/mcp`"`nhttp_headers = { `"Authorization`" = `"Bearer PASTE-YOUR-TOKEN-HERE`" }"; Write-Host Done
```

When it prints **`Done`**, go on to **Step 4**. The command keeps any other settings you already have and adds SynkedUP at the end.

> ⚠️ **Run it once only.** Running it a second time adds a second SynkedUP block, and Codex refuses to read a settings file with the same block twice. If that happens, see Issue 1 below.

### Option B: edit the file by hand

1. Open `~/.codex/config.toml` (Mac) or `%USERPROFILE%\.codex\config.toml` (Windows) in a plain-text editor. If the file or the folder does not exist yet, create them.
   - **Mac, in TextEdit:** choose **Format → Make Plain Text** first. In rich text mode TextEdit turns `"` into curly quotes, which breaks the file.
2. Paste this at the very **end** of the file, then put your token in place of the placeholder:

```toml
[mcp_servers.synkedup]
url = "https://mcp-server.synkedup.com/mcp"
http_headers = { "Authorization" = "Bearer PASTE-YOUR-TOKEN-HERE" }
```

**Then check** the token sits on one single line and the line ends with `" }`. Save.

### Option C: for people who live in the terminal

If you would rather keep the token out of the file, Codex can read it from an environment variable instead. This works for the CLI, but **not for the Codex app** on a Mac (apps opened from the Dock do not see variables set in your shell profile), so use Option A for the app.

```bash
codex mcp add synkedup --url https://mcp-server.synkedup.com/mcp --bearer-token-env-var SYNKEDUP_MCP_TOKEN
```

Then set the variable in your shell profile (`export SYNKEDUP_MCP_TOKEN="..."` in `~/.zshrc` on a Mac, or `setx SYNKEDUP_MCP_TOKEN "..."` on Windows) and open a new terminal window.

---

## Step 4: Check the file before you start Codex

In your terminal, run:

```bash
codex mcp list
```

You should see a row named **synkedup** with the URL, **enabled**, and **Bearer token** under Auth. (If you only use the Codex app and never installed the CLI, skip this and go to Step 5.)

For a closer look, `codex mcp get synkedup` prints the settings with the token masked as `Authorization=*****`. That is the one safe way to check it, so never open the file itself in a chat window.

If the command errors instead, the file has a mistake in it and the error names the line. See Issue 1 below.

---

## Step 5: Add the report pack (2 minutes, before you open Codex)

The report pack is what turns the connection into a dashboard. Seven reports on one page, on your own numbers, saved on your computer and opened for you the moment the connection is proven in Step 6. You never ask for it and you never have to think up a question. It also teaches Codex the things that are easy to get wrong in your data: estimates carry rejected options and superseded versions right alongside the live work, for example, and the pack knows to leave those out, so the numbers match what you would count yourself.

**Do this now, before the first thread.** Codex cannot install it for you: its own safety review refuses to download files into its skills folder, and the first time we tried, that refusal stopped the whole setup. One command in your terminal does it.

**Mac (Terminal):**

```bash
mkdir -p ~/.codex/skills && curl -sL -o /tmp/synkedup-pack.zip https://ops.synkedup.com/synkedup-dashboards.zip && unzip -qo /tmp/synkedup-pack.zip -d ~/.codex/skills && rm /tmp/synkedup-pack.zip && echo Done
```

**Windows (PowerShell):**

```powershell
New-Item -ItemType Directory -Force "$env:USERPROFILE\.codex\skills" | Out-Null; Invoke-WebRequest https://ops.synkedup.com/synkedup-dashboards.zip -OutFile "$env:TEMP\synkedup-pack.zip"; Expand-Archive "$env:TEMP\synkedup-pack.zip" -DestinationPath "$env:USERPROFILE\.codex\skills" -Force; Remove-Item "$env:TEMP\synkedup-pack.zip"; Write-Host Done
```

When it prints **`Done`**, the pack is at `~/.codex/skills/synkedup-dashboards/SKILL.md` (or the same path under your user folder on Windows). If you would rather do it by hand: download [**synkedup-dashboards.zip**](https://ops.synkedup.com/synkedup-dashboards.zip), unzip it, and move the `synkedup-dashboards` folder into `~/.codex/skills/`.

That link always serves the current pack, so if we improve a report, run the same command again and it replaces the folder.

> ⚠️ **If Codex was already open, quit and reopen it.** It reads its skills folder when it starts. A thread started before the pack was installed does not know the pack exists, which reads as "connected, but no dashboard."

---

## Step 6: Try it out, and get your dashboard

1. Open Codex (the app, or run `codex` in a terminal) and start a new thread.
2. Type: **"What does SynkedUP say my company name is?"**
3. **Codex asks permission the first time it uses each SynkedUP tool.** Say yes. It remembers the answer, so this only happens on new tools.
4. Codex replies with **your actual company name.** 🎉 That proves the whole chain: Codex reached SynkedUP and your token logged in.
5. **Then, without you asking, Codex says "Hang on a sec, pulling data and building your dashboards."** and within about a minute your dashboard opens, in your browser or in Codex's own side panel.

> 💡 Typing `/mcp` inside Codex lists the connected servers. That is a useful check, but not a real test: it can show SynkedUP even when your token is bad, because the list only proves Codex found the server, not that it can log in. If Codex lists the server but errors the moment it uses a tool, the token is the problem: request a fresh one (Step 2) and redo Step 3.

> 🤖 **If you are Codex reading this: the company-name test is a checkpoint, not the finish line.** The moment it passes: (1) In the thread the user is looking at, say exactly: **"Hang on a sec, pulling data and building your dashboards."** (2) Start the pack's tier-one build immediately. Do not ask whether they want a dashboard, do not offer a menu, and do not wait for another message. (3) Write the page to the fixed path the pack names: `~/SynkedUP Dashboard/synkedup-dashboard.html` (or the same folder under the user's home on Windows). (4) **Open it for them and confirm it is visibly open.** Your sandboxed browser refuses `file://` addresses by policy; that is not a reason to stop at a path. Use the operating system's opener, or your own side panel. A path in the chat is not delivery. (5) Only after the dashboard is open may you say setup is complete. Then run the longer money pass, ask the three questions the pack names, and rewrite the same file in place. When you ask for the budget figures, name where they are: the Budget Worksheet applied for this year in SynkedUP, three numbers (total labor hours for the year, the unbillable hours in that total, the sales goal). The connection has no budget tool today, so do not go looking for one and never invent a figure; with no answer the budget report says no budget is on file. **Never tell the user to start a new thread or to type "How is my business doing?"**

### What happens next, so nothing surprises you

1. **Within about a minute a page opens.** Your hours for the year, your payroll week, and a chart of every week split billable against unbillable. It is a file called `synkedup-dashboard.html` in a folder called `SynkedUP Dashboard` in your home folder. Bookmark it.
2. **Five more reports say "still building".** That is not an error. Every dollar in SynkedUP sits on an estimated item, one work area at a time, so the money reports have to walk every job you have sold. On a busy year that is a few minutes. They fill in and Codex rewrites the same file, so your bookmark still works.
3. **Codex asks you two or three questions.** What an hour on the ground costs you, what you charge for an hour, and your budget figures for the year. Your budget lives on the Budget Worksheet you applied for this year in SynkedUP, but the connection cannot read that worksheet yet, so Codex asks once and tells you exactly what to read off it: the total labor hours budgeted for the year, how many of those you planned as unbillable, and your sales goal. If you would rather not answer, say so: everything else still works and the budget report simply says no budget is on file.
4. **Codex tells you how to keep it.** The page is a file on your computer, not a link, and nothing refreshes it on its own. To get fresh numbers, ask Codex to **refresh my dashboard** (hours and payroll come back in under a minute; a full refresh takes longer). Codex will also offer a few ways to make it permanent: bookmark it, keep the folder somewhere synced so it is on your phone too, put it behind a password on a simple web host if you want a link to send around, or have Codex set up a refresh that runs by itself every Monday.

> ⚠️ **The dashboard is a snapshot, not a live feed.** The page says when its numbers were read. A hosted dashboard that refreshes itself is on SynkedUP's roadmap; this is the version you can have today.

> 🔒 **It is your file.** It lives on your computer and nowhere else. If you put it on a web host so you can send a link, anyone with that link can read your numbers, so use a host that puts a password on it.

### What else you can ask for

- _"How did we do this week?"_ for hours, billable share and the crew
- _"Who worked the most hours last week?"_ for the crew scoreboard
- _"Did we beat the estimate on the Miller patio job?"_ for estimated hours and margin against what the crew actually burned
- _"What did we sell in August, and who sold it?"_
- _"How much unbillable time did we have last month?"_
- _"Which of my open jobs are ready to progress invoice?"_ for percent complete on the work you have underway
- _"Am I ahead of or behind my labor budget?"_ for where you should be by today (this one needs the three figures off your applied Budget Worksheet, which the connection cannot read yet, so Codex asks you for them once)

> 💡 **What it can and cannot see.** The connection carries your hours, jobs, estimates, crews, customers and properties. It does not carry invoices, payments, or your Budget Worksheet (the yearly budget: labor hours, wages and sales goal) yet. So Codex can tell you what a job was **priced** at and what it was **estimated** to cost, but not what you actually collected. Where a number would be a guess, it will say so instead of guessing.

---

# 🔧 Troubleshooting Guide

Work through these in order.

## Issue 1: Codex will not start, or `codex mcp list` errors about config.toml

**Symptom:** An error naming `config.toml` and a line number, often mentioning a duplicate key or table, or an invalid string.

**Cause:** One of three things: the SynkedUP block was added twice (Option A run twice), a curly quote got into the file from a rich-text editor, or the token line was broken across two lines when pasted.

**Fix:** Open the file in a plain-text editor. Keep exactly one `[mcp_servers.synkedup]` block, make sure every quote is a straight `"`, and make sure the token is on one line ending in `" }`. Save and run `codex mcp list` again.

## Issue 2: "401" or "Unauthorized" or "invalid token" when Codex uses a tool

**Cause:** Codex reached SynkedUP, but SynkedUP did not accept the token. Usually a character missing from the end of the token, or the word `Bearer` (and the space after it) missing.

**Fix:**

1. Re-copy the token from wherever SynkedUP issued it and redo Step 3 (delete the old block first, or run `codex mcp remove synkedup` and then Option A again).
2. Still failing? Test the token directly, with nothing in between. In Terminal (Mac) or Command Prompt (Windows):

   ```bash
   curl -v -X POST https://mcp-server.synkedup.com/mcp -H "Authorization: Bearer YOUR-TOKEN-HERE" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-11-25\",\"capabilities\":{},\"clientInfo\":{\"name\":\"test\",\"version\":\"1.0\"}}}"
   ```

   - `HTTP/1.1 200 OK` means the token is good and the problem is in the settings file.
   - `HTTP/1.1 401 Unauthorized` means the token itself is bad. Ask SynkedUP support for a fresh one.

## Issue 3: The CLI works but the Codex app does not (or the other way round)

**Cause:** You used Option C (the environment variable). The app does not see variables from your shell profile.

**Fix:** Switch to Option A so the token lives in the settings file, which both read. Run `codex mcp remove synkedup` first, then Option A.

## Issue 4: You edited the file but Codex still behaves the old way

**Cause:** Codex reads the settings file when it starts, not while it runs.

**Fix:** Fully quit Codex (the app, and any running `codex` in a terminal) and open it again.

## Issue 5: `codex` is not recognized

**Cause:** The CLI is not installed, or Node.js was installed and the terminal window is older than the install.

**Fix:** Open a new terminal window. If it still fails, redo Step 1 Option 2. On Windows, restart the computer after installing Node.js, since already-open programs do not always see the new PATH.

## Issue 6: The company name came back, but no dashboard followed

**Cause:** The report pack was not installed when the thread started (Step 5), so Codex does not know it is supposed to build one. This is exactly what happened on the very first Codex setup.

**Fix:** Check that `~/.codex/skills/synkedup-dashboards/SKILL.md` exists. If not, run the Step 5 command. Then fully quit and reopen Codex, start a new thread, and type: **"Build my SynkedUP dashboard."**

## Issue 7: Codex says it cannot open the file and gives you a path instead

**Cause:** Codex's built-in browser is not allowed to open files on your computer, and it stopped there.

**Fix:** Tell it: **"Open it for me."** It can open the page in its own side panel or through your computer's normal opener. Or double-click `synkedup-dashboard.html` in the `SynkedUP Dashboard` folder in your home folder; it opens in your browser.

---

## Still stuck?

Contact SynkedUP support at [support@synkedup.com](mailto:support@synkedup.com) and we'll get you connected. The output of `codex mcp list` (which never shows your token) is the most useful thing you can send.

---

## A note on privacy & security

- Your token is private. Don't share it. If you think it's been exposed, contact SynkedUP support to reset it.
- This connection lets Codex **read** your SynkedUP data to answer your questions, and **create or edit** records (a customer, a job, an estimated item) when you ask it to. Nothing happens unless you ask.
- The token is stored on your own computer, in the Codex settings file. `codex mcp get synkedup` masks it, so use that to check your settings rather than opening the file next to a chat window.
