Use Panza with other tools
Panza speaks the same API as OpenAI, right on your Mac. Scripts, apps and AI agents on the same computer can use it to rewrite text in your style.
1. Turn it on
- Open Panza.
- Click Connect with external tools at the top right.
- Check Allow external tools.
With this on, any program on your Mac can use Panza without a password. Nothing outside your Mac can reach it. Turn it off again when you don't need it.
2. Connect
- Base URL
http://127.0.0.1:5005/v1- API key
- None. If a tool insists on one, enter anything, such as
panza. - Model
panzarewrites text in your style.chattalks to a plain local model.
If port 5005 was taken when Panza started, it picks the next free one up to 5014. Panza shows the port it is using under Connect with external tools.
curl http://127.0.0.1:5005/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "panza",
"messages": [{"role": "user", "content": "Your text here"}]}'
Send only the text you want rewritten, one message per request. Panza rewrites whatever it receives, so an instruction like "make this formal" gets rewritten too.
3. For AI agents
Give your agent this instructions file. It covers connecting, which model to use, how to handle errors, and what to check before using a rewrite. Add it to your agent's instructions or skills, or point the agent at this link.
A research preview from the Alistarh group at ISTA · Impressum