r/PiCodingAgent • • Oct 04 '26

Question loggin to unsloth ?

I understand I should be able to login to a local installation of "Unsloth Studio" from pi.dev using

/login llama.cpp

When I try with "http://localhost:8888", I get:

Error: Failed to save API key for llama.cpp: llama.cpp returned HTTP 404Error: Failed to save API key for llama.cpp: llama.cpp returned HTTP 404

I can see in the logs, that it tried to access "/models" instead of "/v1/models"

If I login with "http://localhost:8888/v1", it tries to access "/models" again

If I login with "http://localhost:8888/v1/models", it tries to access: "/v1/models/models" ..!

Did I miss something?

Note: it works well if I use models.json, but I'd like pi.dev to find the models from Unsloth automatically

thanks!

0 Upvotes

6 comments sorted by

1

u/vinotok Oct 04 '26

This will probably be dumb reply that will probably not help, (noob here) but just incase, this is how I run pi and Unsloth together:

1 - start unsloth and load LLM

2 - start pi with: unsloth start pi

This is all I do, llama.cpp is (already/automatically) running in the background

Edit, in case it is important, I haven't update pi to around 1.0, mine is: 0.85.1

1

u/No_bonk95 Oct 07 '26

One big caveat in using unsloth with Pi.

The sampling did not get transfer over to Pi and the Pi session usually will have a cap of 8k context max limit as default, you will need to edit the temp config.json to get higher max context.

1

u/vinotok Oct 08 '26

Not im my case. Whatever is set in Unsloth desktop, gets transfered over to Pi. I choose contenxt size in Unsloth. And everything else.

2

u/No_bonk95 Oct 08 '26

i reported those issue last 2 week, they might have patched the issue. You can check if Pi is using a temp config.json or the original json in pi/agent.

1

u/vinotok Oct 08 '26

Thanks for reporting it! There was another issue, Unsloth didn't see Pi extensions. They fixed this as well.

1

u/No_Advertising_8616 Oct 04 '26

Ask Qwen 3.8 27B Q3 or higher, and it will figure it out.