Use the model from other apps
On this page
Your server’s model isn’t only for Sols. An admin can let other apps chat with it too: a coding assistant, a home automation hub, a script, or an agent such as Hermes. Anything that speaks OpenAI’s chat API or Anthropic’s Messages API can connect, with a key you make in .
It’s off until an admin turns it on.
Turn it on# Link to: Turn it on
- Open Settings › Models.
- Under Other apps, turn on Let other apps use the model.
Turning it off stops every app at once. Their keys are kept, so turning it back on lets them carry on.
Make a key for an app# Link to: Make a key for an app
Make one key for each app. You can then see what each one uses, and revoke one without stopping the others.
- Under Other apps, choose Make a key.
- Name it after the app, such as Hermes.
- Choose how long it Works for. It starts at 90 days.
- Enter your password and choose Make key.
- Copy the key now. This is the only time it’s shown.
A key made here can chat with the model and do nothing else. It can’t read your files, talk to your Sols or change anything on the server.
Other people who may use Sols can make a key like this too, in Settings › API keys, by ticking Use this server’s model. Admins see everyone’s.
Connect the app# Link to: Connect the app
In the app, choose an OpenAI-compatible or custom provider and give it three things. Connect an app shows them for your own server.
| The app asks for | Give it |
|---|---|
| Base URL, or address | Your server’s address followed by /v1, such as https://home.example.com/v1 |
| API key | The key you made |
| Model | solel |
solel always means whichever model your server is running. When an admin picks another model, apps follow along without changing anything.
To try it from a terminal, with the key in SOLEL_KEY:
curl https://home.example.com/v1/chat/completions \
-H "Authorization: Bearer $SOLEL_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "solel", "messages": [{"role": "user", "content": "Hello"}]}'Apps made for Anthropic’s API use the same address and key, and send to /v1/messages.
’s models think before they answer, and the thinking counts towards a reply’s length. Give the app a generous limit on reply length, or a short one can run out before the answer starts.
From outside your network# Link to: From outside your network
The address works wherever your server’s address does. If your server can be reached from the internet, so can the model, with a key. Settings › Network shows whether it can be reached from outside. With private access, an app on one of your own devices can use it without the server facing the internet at all.
See what each app uses# Link to: See what each app uses
Each key under Other apps shows who made it, when it was last used and how many requests it has made today. Open one to see its requests and tokens for today and for the last 30 days. Tokens are counted by the model: what the app sent in, and what the model wrote back.
Revoke… stops the app straight away. If someone else made the key, they’re told.
What keeps it fair and safe# Link to: What keeps it fair and safe
- Only chat requests go through. The parts of the model runtime that switch engines or load models can’t be reached from outside, and an app can’t change which model your server runs.
- One request from outside runs at a time, so your Sols always have room to answer. A few more wait their turn for up to two minutes, and beyond that an app is told the model is busy.
- Each key may make 60 requests a minute.
- A key that leaks can spend your server’s time until you revoke it, so keep keys out of shared files, and revoke one you’re unsure of.