← Back to context

Comment by andai

3 hours ago

>telegram bot that runs claude -p

https://github.com/a-n-d-a-i/ULTRON

It also supports Codex :)

I felt pretty clever until (1) I found a repo where they used this trick to create a full OpenAI compatible API endpoint[0] (lmao, the VC money distortion field spawning truly comical Rube Goldberg machines), and (2) they started banning "unauthorized" usage of the Claude sub, which trend unfortunately seems to be accelerating recently as their lower value consumers have grown in both number and usage.

I think shoving claude -p in your bash script / cronjob / messaging app bot of choice counts as "unathorized 3rd party harness", but your guess is as good as mine...

(claude -p with per-token billing (i.e. paying 7x more) is allowed though, of course)

-- There's also an Agents SDK (formerly Claude Code SDK?) which is basically just claude -p but with more typing, as far as I could tell.

[0] https://github.com/router-for-me/CLIProxyAPI

[0b] Honorable mention https://github.com/kronael/claude-serve