CLI, IDE, and desktop
Connect Daylog to Codex
Store the Daylog token in an environment variable and point Codex at the remote Streamable HTTP server.
- authentication
- Personal access token
- availability
- Codex CLI, IDE extension, or ChatGPT desktop app
- 01
Generate a Daylog token
Open API & MCP inside Daylog, create a token labelled Codex, and copy it. Keep it out of config files and source control.
- 02
Set a local environment variable
Set DAYLOG_PAT in the shell that launches Codex. Use the command for your operating system.
terminal# macOS / Linux export DAYLOG_PAT="YOUR_DAYLOG_PAT" # Windows PowerShell $env:DAYLOG_PAT="YOUR_DAYLOG_PAT" - 03
Register the server
Add Daylog as a Streamable HTTP server and tell Codex which environment variable contains the bearer token.
terminalcodex mcp add daylog --url https://daylog.aasimahmed.com/api/mcp --bearer-token-env-var DAYLOG_PAT - 04
Inspect and use it
Run codex mcp list, or type /mcp in the Codex interface. The desktop app, CLI, and IDE extension share the same Codex MCP configuration on that host.
verify the connection
Ask Codex: Use Daylog to summarize today. If authentication fails, confirm Codex was launched from a shell where DAYLOG_PAT is set.
security
Daylog tools can create, update, and delete your entries. Connect only from a client you trust, review write approvals, and revoke personal access tokens from the app when a device or configuration is no longer in use.