SD can ask an AI model a question for you (the ai verb, see SD TCL - Asking the AI in the User set). This page is for the administrator (admin first): it says what is set up, what leaves the computer, how to choose the provider and give it a model and a key, how to turn the gate on and off, and what is weaker here than in SD Core.
Nothing is on as delivered. There is no provider, no key, and the gate is off (each named provider comes with a default model, so the model is the one thing you need not supply). The installer asks nothing about the AI. Until you have done the other three, the
aiverb says so in words and nothing is sent anywhere. Turning one of them on is your act, and each is one command (or one key on the AI choice page) that can be undone.
What leaves the computer#
When you type ai some text, SD shows you the provider, the model and the size of all that will be sent, then your text, and asks whether to send it. Only if you answer y or yes does anything go out. What goes out is your standing text (below), that text, one fixed sentence that asks for a short plain answer, and a limit on the length of the answer. It is sent over https, with the certificate checked, to the address of the provider you chose, and to nowhere else. The key goes only to that address. No proxy is used: a computer that reaches the internet only through an HTTP proxy cannot use the AI.
SD adds nothing of the account, the session or the data. You can of course type or paste whatever you like into the question, which is why the preview is not optional.
The standing text. Every request, from the ai verb and from every AI line, begins with a few lines of yours: what SD is, how its commands are written, which gates there are, and where SD's help is. SD ships a default; you can replace it (see The standing text below). It is not in the preview and it does not change the question. The preview's size counts it.
Passages of the documentation. The AI line (the home screen, the pages of the toolkit, the IDE, SED, the collection editor and the debugger; not the ai verb) also adds up to four sections of SD's own documentation that match the request, at most 2,400 bytes each and 6,000 in all. Like the standing text and SD's fixed instruction they are not shown in the preview; its size counts them. The installer puts the markdown of the User document in sdsys\docs\user in your Solo folder and the markdown of this Getting Started document in sdsys\docs\admin; a new installation copies them and an upgrade replaces both folders whole, so they are not a place to put your own text. sdsys\docs\admin is read only for a session that has typed admin: the routine asks SD for the administrator before it looks there. This is documentation, not source: the rule below that the AI is never given SD's own code is unchanged.
What the AI is never given, and what is not taken to it#
The AI in SD helps you use SD and write your own programs, dictionaries and files. It is never given SD's own code or any other system information, whichever provider you chose, and not even after admin can a question about changing SD be taken to it from inside SD. The source is open, so if you want help changing SD you can ask an AI outside SD; inside SD that help is not offered. Two things enforce this, and they are not equally strong.
- Where the text comes from (enforced). Every program that puts the text of a record or file into a request (the IDE, SED, the collection editor and the debugger) tells the AI routine where the text comes from. Before anything is shown or sent, the routine refuses text that is part of SD itself, and text whose origin it cannot tell. SD's own files are everything in the
sdsysfolder of your Solo folder: the programs, headers, messages, help text, dictionaries and files of the system account, the passwords, the audit trail, the error log and the AI helper's foldersdsys\ai; and any directory calledgplsrc,gplbldorgplobj. Your account's own folder (user_accounts\sduser) is not among them. It is decided by where a file is, with..and links followed, never by what the text says. The headers insyscomare insdsys, so they are not sent either; your own programs are,$includelines and all. If you want the AI to see one of those headers for a program of yours, copy it into the account: a copy there is the account's own file, and nothing is opened up. - What is typed (a screen). A request that names the system's code or build is refused in words before it is shown, and nothing is sent:
gpl.bp,gplsrc,gplbld,$internal, a kernel file such asop_sort.c, a kernel key such ask$audit, the compiler's own programs, the makefile, SD's source or kernel code. This is a screen, not a wall. A question that names none of those is not caught, and a question that does reach an AI may be answered from whatever that AI learned of the open source. SD's gate is here, in SD.
Nothing the AI returns is run, and the output of a command is never given back to it. A refusal writes one line to the audit trail (ai refused why=request ... or ai refused why=origin ...) and never the text. What you type or paste yourself is yours, and is in the preview.
What is weaker than in SD Core for Windows#
SD Core for Windows runs the helper as a Windows service under an account of its own (NT SERVICE\sd-ai), with its key encrypted for that account in a folder only it and SYSTEM can open, and asks Windows who is calling. Solo makes no Windows account and no service of its own (that is what makes it a Solo), so none of that is possible. The helper runs as your own Windows user: SD starts it for each request, as a child of your session, and it ends when the request is answered. Its settings and keys are in your Solo folder (sdsys\ai), and each key is encrypted with Windows DPAPI for your Windows user.
What follows from that, and what does not:
- SD itself keeps its side.
set.aiandtool.aiare the administrator's. Nothing in SD ever shows a key, and none is ever written to the audit trail;set.aireads back only whether it is set. A key typed at the helper's own prompt (set.ai key PROVIDER) does not pass through SD at all; one typed in the page's setup dialog does pass through your SD session and a hand-over file on its way (see The key, below). - Another program of yours is not stopped. Any program that runs as your Windows user - a PowerShell window, a script, a program of the account that has been given
os.execute- can run the helper's program with the words ofset.ai, change its settings, turn the gate on, or use the key: DPAPI opens the key for whoever runs as you. The gate is the one switch SD keeps; it is not a wall against a program that is not SD. A key is as safe as your other private files, and no safer. If that matters, do not turn on the account'sshorosswitches (see Operating system access) and do not run untrusted programs as this Windows user. - Another Windows user is stopped. Each key file's access list allows only you and SYSTEM, and its DPAPI encryption is for your Windows user, so another ordinary user of the computer cannot read it, and a copy of the file, a backup or a copied disk does not carry a usable key. A Windows administrator of this computer is not stopped: treat everyone who is an administrator here as someone who can obtain the key.
- A session that did not sign in with your Windows password may not be able to open the key. DPAPI opens a key with what Windows unlocked when you signed in with your password. A session that reached SD in another way - over ssh with a key rather than your Windows password, for example - may find a key that is set but cannot be opened: SD then says the provider's key is not set. Sign in over ssh with your password if it happens.
If you need the key out of reach of your own programs, use SD Core for Windows, where the helper is a different account.
The pieces#
All in your Solo folder (%USERPROFILE%\SDCoreSolo as installed):
| Piece | What it is |
|---|---|
usr\bin\sd-ai.exe |
The helper, a native program. SD starts it for each request, as you, with no window; it is the only part of SD that connects outward and the only part that reads a key. Run with the words of set.ai, it is also the helper's client. |
usr\bin\ai-providers |
The connection details that come with SD for Anthropic, OpenAI, Google and DeepSeek, and each one's default model. |
usr\bin\ai-context |
The standing text that comes with SD. An install replaces it. |
sdsys\ai\ |
The helper's own folder: the settings (ai.conf, which holds the gate line), your standing text (context), the counters of the limits (state\) and the helper's log (sd-ai.log: your security identifier, the provider, the result and the sizes of each request, never the text or the key). The helper makes it on the first request. |
sdsys\ai\keys\ |
One key file per provider, encrypted with DPAPI for your Windows user, open only to you and SYSTEM. A key file whose access list names anyone else is refused, not repaired. |
sdsys\$aikey\ |
The setup dialog's hand-over folder, open only to you and SYSTEM. A key typed in the dialog is in a file here only until set.ai key PROVIDER handover has given it to the helper; the file is then removed. |
There is no service to set up and nothing to start: the helper does nothing until the AI is set up and a request is made.
An upgrade keeps sdsys\ai. So does the uninstaller's Keep: the settings, your standing text and the keys stay with your data, and an install that reloads the kept data finds them again (see Upgrading and uninstalling). Delete removes them with the rest of the folder.
The four things that turn it on#
- A provider. One: Anthropic, OpenAI, Google, DeepSeek or Custom.
- A model for that provider. Each of the four named providers comes with a default model, shown on the page and used until you choose another (in the setup dialog, or
set.ai model PROVIDER NAME; a dash goes back to the default). Model names change, so check the one you will pay for; the setup dialog offers the provider's own list once a key is set, andset.ai models PROVIDERprints it at the prompt. Model names are case-sensitive. Custom has no default. - A key for that provider, from the provider's own account. It is typed or pasted in the setup dialog (shown as
*) or at the helper's own prompt, and kept for the helper only. - The gate:
set.ai gate on. It is a setting of the helper (the linegate=yesinsdsys\ai\ai.conf); anything else, or no line, is off.
Continued in#
Setting Up the AI Helper — the AI choice page, the set.ai verb, the standing text, the key, a custom provider, the audit trail and troubleshooting