Skip to content

itsreverence/ha-codex-assist

Repository files navigation

Codex Assist for Home Assistant

Codex Assist icon

Latest release CI HACS custom repository

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.

Quick install

Requirements: Home Assistant 2026.5.0 or newer, HACS, and a ChatGPT account/plan with Codex access.

Open this repository in HACS Add the Codex Assist integration

  1. In Home Assistant, open HACS → Custom repositories.

  2. Add this repository as an Integration:

    https://github.com/itsreverence/ha-codex-assist
    
  3. Install Codex Assist.

  4. Restart Home Assistant.

  5. In ChatGPT, enable Settings → Security → Enable device code authorization for Codex if it is available on your account.

  6. Go to Settings → Devices & services → Add integration, or use the button above.

  7. Search for Codex Assist and complete device-code sign-in.

  8. Select Codex Assist in your Assist pipeline.

  9. Test with a harmless exposed entity first, like a single light.

Why use it?

  • 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 confirming yard lights are on and turning them off

Codex Assist options showing model and system prompt controls

Safety short version

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.

User guide

The GitHub Wiki is the main user manual:

Project docs

About

Unofficial Home Assistant Assist agent using ChatGPT/Codex subscription access

Topics

Resources

License

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages