Track Time with Codex
- Paste one prompt and Codex adds the Timesheet server itself
- Sign in once in the browser, no API key to copy
- The same setup works in the CLI, the app and the IDE extension
No credit card required. Cancel anytime.
Timesheet is the time tracker that Codex drives through the Timesheet MCP server. It works as you, so it only reaches the projects and data your account can see. Using ChatGPT in the browser instead? See ChatGPT. Working in another coding agent? See Claude Code or Cursor.
How do I connect Timesheet to Codex?
Codex is an MCP client that can run its own setup commands. Paste the prompt below and Codex adds the hosted Timesheet server to ~/.codex/config.toml. You sign in once with OAuth. The Codex CLI, the Codex app and the IDE extension share this file, so you set it up once.
Paste this into Codex
Codex adds the server at https://mcp.timesheet.io to your user configuration, so it works in every project. All Timesheet tools, OAuth sign-in.
Connect me to Timesheet so you can track my time. 1. Run: codex mcp add timesheet --url https://mcp.timesheet.io 2. Tell me to run codex mcp login timesheet in a terminal and sign in to Timesheet in the browser. 3. After I restart Codex, show my running timer and today's hours.
No API key needed. If the sandbox blocks the command, run both commands yourself in a terminal.
Add the server in the app
In the Codex app, open Settings > MCP servers and select Add server. Enter the name timesheet, choose Streamable HTTP and enter the URL below. Save, select Restart, then select Authenticate and sign in to Timesheet. In the IDE extension, the same screen is in the gear menu under MCP servers.
https://mcp.timesheet.ioInstall the Timesheet skill
The skill tells Codex how to work with Timesheet. It uses the Timesheet tools when the server is connected and the Timesheet CLI when it is not. Install it with the skills CLI, then sign in to the CLI once.
npx skills add timesheetIO/timesheet-plugin
npm install -g @timesheet/cli
timesheet auth loginA Timesheet plugin for ChatGPT and Codex is in OpenAI's review. Until it is listed, use the server or the skill.
You: Start the timer for Website redesign and note that I'm on the checkout flow.
Codex: Started the timer on Website redesign at 09:14 with the note "checkout flow". Say stop when you're done and I'll save the entry.
- What's my timer status?
- Log 90 minutes on the API refactor for yesterday
- How many hours did I track this week?
Step by step
- 1Install Codex and sign in, for example with
npm install -g @openai/codexandcodex - 2Paste the setup prompt, or add the server in the Codex app settings
- 3Run
codex mcp login timesheetand approve access to Timesheet in the browser - 4Restart Codex and type
/mcpto check that timesheet is connected - 5Tell Codex what to start, stop or log. The entries appear in every Timesheet app right away
MCP server vs Timesheet skill: what is the difference?
Both reach the same Timesheet account. The server gives Codex the Timesheet tools directly. The skill adds instructions and can fall back to the Timesheet CLI.
| Capability | MCP server (Option 1 or 2) | Skill and CLI (Option 3) |
|---|---|---|
| How Codex gets it | codex mcp add or Settings > MCP servers | npx skills add timesheetIO/timesheet-plugin |
| Sign-in | OAuth in the browser through codex mcp login | OAuth in the browser through timesheet auth login |
| Timer, entries, projects, reports | Yes, all Timesheet tools | Yes, through the server or the CLI |
| Needs software on your computer | No | Yes, Node.js and the Timesheet CLI |
| Best for | Asking in your own words in any Codex surface | Sessions where Codex runs shell commands anyway |
Recommendation: Start with the MCP server. Add the skill if you want Codex to follow the Timesheet conventions more closely, or if you work where MCP servers are turned off.
What can Codex do with Timesheet?
Codex already knows what you're working on. With Timesheet connected it can turn that into accurate time entries while the context is fresh.
Timer from the session
Start, pause, resume and stop the timer by asking. Codex finds the project by name, so you don't need IDs.
Log finished work
"Log two hours on the migration for this morning" becomes a time entry with the right project, times and description.
Hours and reports
Ask for today's total, the week by project or billable hours, and get the numbers in the session.
Exports
Generate PDF, Excel or CSV exports from your saved templates and send them by email.
One setup, three surfaces
The Codex CLI, the Codex app and the IDE extension read the same
config.toml, so Timesheet is there in all of them.OAuth, no API key
Codex signs in through your browser and works as you. Run
codex mcp logout timesheetorcodex mcp remove timesheetto disconnect.
How does Codex talk to Timesheet?
Codex is an MCP client: it connects to tool servers and offers their tools to the model next to its own. The Timesheet MCP server runs at mcp.timesheet.io and exposes your account as tools such as timer_start, task_create, statistics_get and export_generate.
What happens after the prompt
- Codex adds the timesheet server to
~/.codex/config.toml - You run
codex mcp login timesheetand approve access in the browser - Codex reads the Timesheet tools and your projects
- It turns your request into the right tool call, such as starting a timer
- The entry is saved to your account and syncs to every Timesheet app
# Add the server and sign in
codex mcp add timesheet --url https://mcp.timesheet.io
codex mcp login timesheet
# What it writes to ~/.codex/config.toml
[mcp_servers.timesheet]
url = "https://mcp.timesheet.io"
# Check and remove
codex mcp list
codex mcp remove timesheetRead more in the MCP server documentation or the Codex MCP guide.
What can I ask Codex?
Anything you'd tell a colleague who keeps your timesheet. Name the project, the time and what you did.
- Start of day
Start where you left off
“Start the timer for the project I worked on yesterday and tell me how long I worked on it then.”
- From your repo
Log the work from the commits
“Look at my commits since 9am and log the time on Website redesign with a short description of what changed.”
- End of week
Check the week
“Show my hours for this week by project and list the days with no time entries.”
- Billing
Prepare an export
“Export last month's billable hours for Acme as a PDF and email it to me.”
Codex vs ChatGPT vs OpenAI dots: which one is this?
OpenAI makes a coding agent, a chat app and always-on agents. All of them can reach Timesheet in some way. This page covers the coding agent.
Codex
This pageThe coding agent in the terminal, the Codex app and IDEs such as VS Code. It runs commands, edits files and connects to MCP servers.
ChatGPT
The chat app on the web, desktop and mobile. Add Timesheet as a custom MCP server on the Plugins page. See ChatGPT.
OpenAI dots
Always-on agents that work in ChatGPT, Slack and Teams. See OpenAI dots.
Using another coding agent? See Claude Code, Cursor or Gemini.
Cost, security and troubleshooting
What does it cost?
Connecting Codex costs nothing extra on the Timesheet side. The MCP server, the skill and the CLI are part of the Pro plan and above. Every plan starts with a 30-day trial, no credit card required. Codex itself is billed by OpenAI under your own plan.
Compare plans →How is access secured?
Codex signs in with OAuth 2.1 and PKCE and registers itself with Timesheet, so no password or API key goes into a prompt or config.toml. Codex can only reach what your Timesheet account can reach. Disconnect with codex mcp logout timesheet or codex mcp remove timesheet.
Something not working?
- No Timesheet tools: type
/mcpin Codex. If timesheet is missing, checkcodex mcp listand restart Codex. - Sign-in error: run
codex mcp login timesheetagain. Without a local browser, add--no-browserand paste the redirect URL back into the terminal. - Wrong address: the URL is
https://mcp.timesheet.iowith nothing after it. Check theurlline in~/.codex/config.toml. - A feature is refused: your plan may not include it. The tool answer links to the plans.
Frequently asked questions
How do I connect Timesheet to Codex?
Paste the setup prompt from this page, or run codex mcp add timesheet --url https://mcp.timesheet.io yourself. Then run codex mcp login timesheet and sign in to Timesheet in the browser.
Do I need an API key?
No. Codex signs in with OAuth in your browser. An API key is only needed for the local server (npx -y @timesheet/mcp) or the CLI in automation, and you create it in the web app under Integrations > API Keys.
Does the setup work in the Codex app and the IDE extension?
Yes. The Codex CLI, the Codex app and the IDE extension share ~/.codex/config.toml. Add the server once in any of them and it shows up in the others.
Is there a Timesheet plugin for Codex?
A Timesheet plugin for ChatGPT and Codex is in OpenAI's review and not listed yet. Until then, add the MCP server, and install the Timesheet skill with npx skills add timesheetIO/timesheet-plugin if you want it.
Which plan do I need?
The Pro plan or above, because the MCP server uses the Timesheet web platform. Start with a 30-day trial, no credit card required.
Can Codex log time for work it did in the session?
Yes. Ask it to log the time it spent with you, for example "log this session on Website redesign with a summary of what we changed". Codex creates the entry with your project and a description.
Can I use the local server instead?
Yes. Run codex mcp add timesheet --env TIMESHEET_API_TOKEN=your-api-key -- npx -y @timesheet/mcp. It needs Node.js and an API key from Integrations > API Keys. The hosted server needs neither.
Is it safe to let Codex change my time entries?
Codex works only with your account's permissions, and every change shows up in your Timesheet account right away, where you can edit or delete it. Deleting and stopping are marked as destructive tools, so clients treat them with care.
Let Codex keep your timesheet
One prompt, one sign-in, and your hours are tracked where you already work.
No credit card required. Cancel anytime.