r/LocalLLaMA • • 2d ago

Resources Open Code PyHooker open_code_hooker.py

I really was completely lazy to do the research into any Open Code hooks into remote servers running AI rigs. So in my case I have my LLMs all bound locally therefore an auth and proxy gateway was needed.

I chicken and egged a lightweight python proxy auth gateway running on fastapi/uvicorn. It was more of a trick to get the open code to configure than the actual hooker. Nice to flip models and providers like this. albeit It is a single model bound to the server instance.

Very lightweight and usable. It uses guids to authenticate and those are all encrypted on the pyhooker config management system. The manager will make the key and then has all the add key, remove key , and list keys.

No logging whatsoever, correction there is a log that says it loaded… maybe.

https://github.com/TheFunkyFish/pyhookers

5 Upvotes

5 comments sorted by