Skip to content

[Reddit issue] Remote access to the back-end API calls #17819

Closed

Description

@danielhanchen

Question - Running a local model in unsloth desktop with remote/lan access enabled for testing.
API key has been generated and coming in by reverse proxy through a filtered firewall.

Using the openai POST requests all work as per normal but I found that the remote user can also access the back-end api/inference commands and load/unload models on demand. Including downloading ones that aren't local.

I assumed that the settings under API/Model auto-switch being disabled would stop this? Or am I looking in the wrong area to control this?

image

(current unsloth desktop api settings)

Thanks.

https://www.reddit.com/r/unsloth/comments/1xwnoa1/sanity_check_of_remote_access_to_the_backend_api/

Activity

  1. danielhanchen commented on Nov 16, 2026

    @danielhanchen
    MemberAuthor

    Fixed! An Unsloth API key used to have the same access as your account, so anyone holding it could also load, unload and download models; Model auto-switch only controls whether a chat request can switch models. In #17833, after you press Create token in Settings > API you can now set the key to Inference only. Such a key can chat with and list the loaded models, but it cannot load, unload or download models, change settings, create keys or run server-side tools.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions