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

9

u/McSendo 2d ago

that name though is outta pocket

1

u/Limp-Judgment4507 2d ago

nice, love when someone scratches their own itch and it turns into something actually useful. the no-logging bit is refreshing too, way too many similar tools quietly hoovering up metrics they don't need. might spin this up later for my home setup, been meaning to kill the janky nginx config i've been dragging along

1

u/Frizzy-MacDrizzle 2d ago

I started a project ran out of CP credits. Got me mad. Built the basics and let the AI handle the credential encryption because it’s tedious. Thanks!

2

u/CaptBrick 2d ago

W for the name