Claude Code for Home Assistant - AI Assistant directly in your HA!

Hi all, I faced an interesting problem… I disconnected from my host and when I reconnected, Claude was gone, as well as all the sessions and all the MCP servers I had installed and the Skills… I use the same Terminal extension recommended by the creator of the Project in GitHub.

Trying to ask LLMs they floated the idea that when I connect I am accessing a new Container, and therefore a new environment, even if I connect to the same host with the same credential.

Did anybody face the same issue? How can I make sure to make my Claude installation persistent in HA?

Thanks.

How do you guys handle auth for subscriptions? I cannot select the link in the terminal, I had to make a screenshot and use ai to copy the link. That works, but after that it gives me a token to paste back in the terminal which seems to work, but i get an Oauth error. I tried exporting long auth token, copy credentials, but nothing seems to work.

I’m running HA on a VM with limited resources, but I have a much more powerful AI server running elsewhere.

Can I link this to my existing server to leverage it’s power?

Same problem here. I can’t log in or use the link.

This will allow you to use the link.

Just a quick question. Is it possible to use a local AI, running on something likel ollama?

Hold Ctrl+Shift then highlight the text. It will copy to your clipboard. The easiest thing to do is auth with device auth ( option #2 ). You should also switch to Codex, you get way more usage out of it.

You will not get anywhere near the ability that you will with something like Claude. You can do it, but the ability of the model will be greatly reduced. Probably to the point of it breaking things easily. Unless you have a few $xx,xxx worth of hardware at home.

I just wanted to say thank you @robsonfelix! This add-on is a complete game changer. In the past couple of days, I’ve done more major adjustments and dashboard creation than I did in the previous 3 months. My wife thanks you too, because now when she asks if I can modify the dashboard the way she wants, I actually get it done in a few hours rather than in days. Terrific add-on, GOOD ON YOU!!!

…and a hidden profile :rofl:

Okay so has anyone gotten this to update successfully?

On Mac, I’m taking a screenshot of the login and then pasting into Claude desktop to get the URL.

Am I being stupid (don’t answer that!) but I keep getting a 400 error when authenticating. I have a pro account that I’m using to and can retrieve/paste the auth code but keep getting the same error.

1 Like

It seems that it doesn’t install on the latest HA. I get this:
An unknown error occurred while trying to build the image for app f33e6736_claudecode. Check Supervisor logs for details
Opened a ticket, but seems like there’s a few out there that haven’t been addressed. Not sure this is being supported.

I have question are there any advantages of using this instead of simply connecting your claude code instance to your home assistant MCP-Server?

Using CTRL and - (minus) will zoom out so you can click on the link.

1 Like

I have the exact same issues. How on earth are others getting it to work. It doesn’t pass the full URL through to the browser only the first line which throws the same error exactly as others described unless you reduce the screen zoom to very small so the URL is on one line. However now when I paste the return code back into Claude code CLI within HA I get ‘error 400’. :face_with_monocle:

Did you manage to find a solution? I can’t control+v the return code back into the CLI without error 400 also.

Nope, tried everything I can think of.

I changed the size of the browser window and that did the trick to show all the url. Something real stupid like that. (I also moved it to my bigger screen and the window was real big)