Go to file
2025-05-11 22:35:50 -05:00
.gitignore initial commit 2025-05-11 22:35:50 -05:00
config.example.yml initial commit 2025-05-11 22:35:50 -05:00
go.mod initial commit 2025-05-11 22:35:50 -05:00
go.sum initial commit 2025-05-11 22:35:50 -05:00
main.go initial commit 2025-05-11 22:35:50 -05:00
README.md initial commit 2025-05-11 22:35:50 -05:00

simple-prox

Simple http proxy. Allows you to specify headers or a bearer token to add to every request.

I wanted a simple way to proxy access to remote APIs through a predicatble exit IP (where this service is running) and to isolate API keys from the calling service, this simple-prox was born.

It works with standard HTTP requests and SSEs (e.g. OpenAI compatible streaming responses). It should work with things like long-polling and websockets.

Building

go build . -o simple-prox

Running

./simple-prox \
    -c config.yml \
    -h 'Custom: Header' \
    -b 'bearer-token-000' \
    -p 8080 \
    -e 'http://example.com'