On this page

WORK WITH LINA

Use your own AI model

Run Lina on your own Anthropic API key or your own ChatGPT account instead of Included AI, choose the model she uses by default, and know where each request goes.

Verified against AI NetShell 0.4.20

Out of the box, Lina runs on Included AI: Claude Sonnet 5.5 through the AI NetShell service, paid for with the AI credits on your account. There is nothing to set up, so most people never need this page. It is for when you want Lina to run on your own Anthropic API key or your own ChatGPT account instead. Requests then go from your PC to that provider and use no AI credits, apart from one recovery pass described under Where each request goes. Whichever route you use, device output is masked before any model sees it, and nothing on a device changes until you approve it.

Your own AI needs the Investigate plan or higher. On a plan without it, a run cannot start, and the app shows AI on your own API key or ChatGPT sign-in needs the Investigate plan or higher. A key you save is kept whatever your plan; the plan decides whether the app can use it. Included AI needs a signed-in account on Investigate, Resolve or the Resolve trial, with credits, which Your first hour covers.

1. Open AI providers#

  1. Select Settings in the left rail.
  2. Under AI, select AI providers. The pane opens with the line Keys are stored in Windows Credential Manager under a separate service from SSH credentials. They are never shown in app settings or logs; the app reads a key to check it is set and to send requests to the provider.

While you are signed out, the pane says Sign in to see what your plan includes and offers Sign in. On a plan without your own AI it says Your plan does not include your own API keys. Start your 14-day free trial or pick a plan under Settings > Account. Keys saved here are kept. Your plan decides whether the app can use them.

Settings > AI providers with an Anthropic key saved, showing the Saved chip, the hidden key field, Replace and Remove, and below it the ChatGPT row, not signed in here, with its Sign in with ChatGPT account button
Settings > AI providers with an Anthropic key saved, showing the Saved chip, the hidden key field, Replace and Remove, and below it the ChatGPT row, not signed in here, with its Sign in with ChatGPT account button

2. Save an Anthropic key#

  1. Paste the key into the Anthropic field. Its placeholder reads sk-ant-….
  2. Select Save Anthropic key. The field clears, a Saved chip appears beside Anthropic, and the confirmation reads Anthropic key saved to Windows Credential Manager. with a masked form of the key under it.

Saving stores the key on this PC. It does not check the key with Anthropic. A key Anthropic rejects shows up when Lina first runs on it: the run stops with a card titled API key rejected and an Open AI providers button that brings you back here.

Once a key is saved the button reads Replace, and Remove appears beside it. Remove asks Remove your Anthropic key from this computer? It is deleted from Windows Credential Manager. You can paste it again later. A removed key cannot be read back, so keep a copy where you got it.

If an earlier version of the app saved an OpenAI API key on this PC, an OpenAI row shows it as Saved with the note No model uses this API key. and a Remove button. There is no field to add one: GPT models run through your ChatGPT account, below.

3. Or sign in with your ChatGPT account#

The ChatGPT row reads Uses your ChatGPT subscription. No API key needed. and This connects a ChatGPT account. It is separate from your AI NetShell account.

  1. Select Sign in with ChatGPT account. The first time, a dialog titled Use your ChatGPT account? explains that this runs AI on your own ChatGPT subscription, that OpenAI does not yet have an official program covering this kind of use from outside apps and could restrict it, and that your account stays subject to OpenAI's terms. Select Sign in to continue.
  2. Finish the sign-in in your browser. Meanwhile the row reads Opening browser. Complete sign-in there…. The app waits up to five minutes; if the browser step takes longer, the row says the sign-in timed out, and you can start it again. The row then reads Signed in with ChatGPT (account …1234)., ending in the last four characters of the account id, and Disconnect stands where the sign-in button was.

The sign-in is stored in Windows Credential Manager like the keys. The app renews it itself when a run needs it and it is within five minutes of expiring. A sign-in that is past expiry and could not be renewed stops working: the run stops with Your ChatGPT sign-in expired. Sign in again to keep using ChatGPT models. and a Sign in again button that opens this pane and starts the sign-in for you. Use that button even if the pane still reads signed in; the pane's own line, Your ChatGPT sign-in expired. Sign in again., appears once the sign-in has no renewal left.

Disconnect asks Disconnect your ChatGPT account from AI NetShell? Saved API keys are not affected. While the app checks whether its sign-in service is available, the sign-in button is grayed out with Checking whether ChatGPT account sign-in is available. under it. If that check fails, the line reads ChatGPT account sign-in is disabled because AI NetShell could not confirm the built-in browser sign-in service. Restart the app to try again. Until then, use Included AI or your Anthropic key.

4. Choose the model#

The model picker lists each route you have set up as its own group, headed by who pays for the request, with the models in it:

Group headerModels
Included with your plan: uses creditsSonnet 5.5 (recommended) and Opus 5.5. Opus 5.5 is included with the Resolve plan; on another plan, once the app has checked your plan, its row reads Resolve plan and cannot be selected.
Your Anthropic key: unmetered, billed to youSonnet 5.5 (recommended) and Opus 5.5. Shown once a key is saved and your plan includes your own AI.
Your ChatGPT accountGPT-6.1 Sol, the group's default, and GPT-6 Luna. Shown once you are signed in and your plan includes your own AI.

The same picker is in two places:

  • In Lina's chat. In the chat header, select the ⋯ button; its tooltip reads Export and model. The menu holds the export items and, under them, the model picker, which shows the model your next message will use in short form: Sonnet 5.5 · Included, Sonnet 5.5 · Own key or GPT-6.1 Sol · ChatGPT. Pick another model and it applies to your next message; an investigation already running keeps the model it started with, and the chat says so: Model set to Opus 5.5. This applies to your next message. The investigation in progress keeps running on Sonnet 5.5. The first time you pick Opus 5.5 on Included AI, a dialog titled Use Opus on credits? explains that it is the premium model for the hardest cases and spends credits at a much higher rate than Sonnet 5.5; select Use Opus to go ahead.
  • In Settings. Settings > General has a Default AI model row: the model the chat starts on the next time the app opens. Pick one and select Save; the confirmation reads Saved: default model updated. Saving does not change a chat that is already open; its own picker does that, and it always shows the model your next message will use. Until you save a default, the row names the model a fresh chat starts on, with the note No default saved yet. Chat uses this model until you pick one. With no key of your own that is Sonnet 5.5 · Included AI; once an Anthropic key is saved it is Sonnet 5.5 · Your Anthropic key, while a chat already open keeps what its picker shows until the app restarts.

If Opus 5.5 on Included AI was your saved choice and your plan does not include it, the app moves the choice to Sonnet 5.5 and says once: Opus is included with the Resolve plan. Switched to Sonnet 5.5. Opus 5.5 on your own Anthropic key has no such lock.

Lina's ⋯ menu open in the chat header with the model picker expanded on Sonnet 5.5 · Own key and two groups listed: Included with your plan: uses credits, where Opus 5.5 reads strongest: 5× credits, and Your Anthropic key: unmetered, billed to you. No ChatGPT account is signed in, so its group is not listed, and with no conversation open the menu has no export items
Lina's ⋯ menu open in the chat header with the model picker expanded on Sonnet 5.5 · Own key and two groups listed: Included with your plan: uses credits, where Opus 5.5 reads strongest: 5× credits, and Your Anthropic key: unmetered, billed to you. No ChatGPT account is signed in, so its group is not listed, and with no conversation open the menu has no export items

When a saved model can no longer run#

Remove the key or disconnect the account behind your saved default and chat moves to another model it can run, Included AI's Sonnet 5.5 first. Settings > General then says so in the Default AI model row, for example Opus 5.5 · Your Anthropic key needs an Anthropic key with the note Chat is using Sonnet 5.5 (Included AI) instead. and a Use Included AI button. Select it, then Save, to make that model your default.

Where each request goes#

RouteThe request goes toPaid by
Included AIThe AI NetShell service at ainetshell-cloud.ainetshell.workers.dev, which passes it to the modelAI credits on your account
Your Anthropic keyAnthropic, at api.anthropic.comYour Anthropic account
Your ChatGPT accountChatGPT, at chatgpt.com; the sign-in itself runs through auth.openai.comYour ChatGPT subscription

One exception to the route you chose. When a run ends without a valid final report, the app makes one recovery pass for that case on Sonnet 5.5: a run on Included AI recovers on Included AI, a run on your Anthropic key recovers on your key, and a run on your ChatGPT account recovers on your Anthropic key if you have one, otherwise on Included AI, which spends credits.

Before any model sees device output, the app masks it: passwords, keys, SNMP communities, pre-shared keys and similar secrets become {{NS:...}} placeholders. Within one piece of output the same secret gets the same placeholder, so Lina can still see that two lines in it share one key without seeing the key. What leaves your PC on each route, and what is kept, is on Security and privacy. The full list of hosts to allow through a firewall is on Install AI NetShell.

If your network uses a proxy, set it under Settings > Network, in Outbound proxy: choose Automatic: use environment proxy (default), Direct: no proxy or Manual proxy…, fill in a manual proxy's URL and bypass list, then select Save. The line above the setting reads How AI NetShell reaches the AI providers, licensing, updates, and sign-in. Device SSH/serial connections are unaffected. Test connection sends one request with no credentials to api.anthropic.com through the fields as you have them, saved or not, whichever route you use, and reports the result with the host and the proxy mode it tested. A pass proves the path to that host, not your key, your account or your credits, and it saves nothing. A manual proxy can be HTTP or SOCKS5; a proxy that needs a user name and password in its URL is not supported.

Next#

Checked on AI NetShell 0.4.20