Lurker News

Comments (411) 138 threads

Show all comments

Showing thread 15 of 138

ketzu1 reply#
I have a local DNS with a CNAME record for `claude-is-an-idiot.test` to `elephant.home.ketzu.net`, which is the testing environment for my side project. It is also hosted on the same local network (dns resolves locally to 192.168.x.y).

I created a script that creats ephemereal testing accounts on the testing system, so I can have agents run the script, get an account for a given testing permission level, and test the app on their own (lacking willing testing users or QA people for my side project).
The CNAME exists, because Claude refuses to insert any passwords into a webpage. He will only allow it for .test, 127.0.0.0/24 and localhost addresses. In one session, claude even refused my .local workaround, because he figured out that it is an explicit workaround around this rule. (Only in a single session though, seems one of those instabilities you get with LLMs in general.)
It is super annoying, so I just use opencode-go mdoels and opencode for that task. However, I don't hate Anthropic for that. I somewhat get where they are coming from. It sucks it creates problems for honest uses.
(I also had a script that simply gave the session a session token and told it to use it for rest requests.)
Edit: .test instead of .local

dns_snek1 reply#
Does using "localhost" pacify it? You can set up a simple TCP relay that forwards localhost:8080 to whatever IP you desire.

.internal might also work better than .local, since that's the correct TLD to use for this sort of thing and .local is assigned to mDNS.

ketzu#
I used .test, not .local, sorry for the confusion. I assume localhost:8080 forwarding would work the same, it was just easier as I already had the infrastructure for a simple cname entry.

If any agent Complains again, I will try .internal and a localhost proxy. Right now everything works with the .test domain I claude, and everyone else just uses the normal one.