A simple and easy to use AI for your shell
echo 'hello world' | curl -F u=@- 'https://qsh.jmeyer.dev' > main.py
cat main.py
# print('Hello, World!')
You can also add a system prompt to the request:
echo 'always use double quotes' > system.txt
echo 'hello world' | curl -F u=@- -F s=@system.txt 'https://qsh.jmeyer.dev' > main.py
cat main.py
# print("Hello, World!")
alias qsh='curl -F u=@- -F s=@system.txt "https://qsh.jmeyer.dev"'
echo 'hello world' | qsh
# print("Hello, World!")
When you pipe a Python code snippet into the endpoint, the service processes the input and returns a complete Python program. For example:
echo 'a small python program' | curl -F u=@- "https://qsh.jmeyer.dev"
# the resulting program is written to stdout by curl
Requests are cached for 1 day.
We use uv
for development.
uv sync
uv run python -m unittest -vb test_handler.py
make deploy
make destroy # to clean up