Use OpenAI Codex / ChatGPT as a Home Assistant Assist conversation agent.
Codex Assist signs in with Codex-style ChatGPT device-code auth, adds Codex as a selectable Assist conversation agent, and keeps device control inside Home Assistant's normal exposed-entity safety model.
Experimental: this project is not affiliated with OpenAI or Home Assistant. Codex backend compatibility may change with upstream Codex updates.
Requirements: Home Assistant 2026.5.0 or newer, HACS, and a ChatGPT account/plan with Codex access.
-
In Home Assistant, open HACS → Custom repositories.
-
Add this repository as an Integration:
https://github.com/itsreverence/ha-codex-assist -
Install Codex Assist.
-
Restart Home Assistant.
-
In ChatGPT, enable Settings → Security → Enable device code authorization for Codex if it is available on your account.
-
Go to Settings → Devices & services → Add integration, or use the button above.
-
Search for Codex Assist and complete device-code sign-in.
-
Select Codex Assist in your Assist pipeline.
-
Test with a harmless exposed entity first, like a single light.
- Use eligible ChatGPT/Codex subscription access instead of wiring Home Assistant to OpenAI API billing.
- Pick Codex as a normal Home Assistant Assist conversation agent.
- Let Home Assistant's Assist exposed-entity controls define what the agent can see or control.
- Ask about exposed entity state and request simple actions in the same Assist chat.
- Stream replies in Assist while Codex is answering.
- Configure model, prompt, reasoning effort, reasoning summary, and text verbosity from the integration options flow.
- Use Home Assistant AI Task for structured data generation, attachment-aware prompts, and subscription-backed image generation with curated image quality and size controls.
Codex Assist does not expose a raw “call any Home Assistant service” bridge. It routes control through Home Assistant's Assist LLM API, so your Assist exposed entities list is the practical safety boundary.
Start with harmless lights or read-only questions. Keep locks, alarms, garage doors, water shutoff valves, covers, and other sensitive devices unexposed unless you deliberately want Assist control there.
The GitHub Wiki is the main user manual:

