S0.12 Connecting your own AI service

Connect your own AI service, for example Claude, to PirtoCAD: where the key goes and how you see that the connection works.

First stepsFoundationsVideo 2:46
Recorded in English with the English PirtoCAD 1.3.1 window. Choose English or Finnish subtitles, or turn them off, with the player's subtitles button. The video plays from this site, and nothing loads from a third party.

Transcript

  1. 0:00 Where the AI runs
  2. 0:40 Service and key
  3. 1:25 Model and connection
  4. 2:02 First request
  5. 2:31 Removing the key

0:00 Where the AI runs

In this episode I connect my own AI service to PirtoCAD, here Claude. The AI is off until a service is connected in Settings. I open Settings and then the AI assistant page. First it asks where the AI should run: on this computer or on the internet. I choose An AI service on the internet. It needs a key, and project data goes to the service. AI on your own computer is in episode S0.11.

0:40 Service and key

Under Service I choose Claude. I need an API key. It is not the same as signing in to the Claude app. Open the key page takes me to the service's key page in the browser. There I sign in, create a new key and copy it. The service bills API use separately, so the account needs credit. I paste the key into the API key field. Once the key works, it is kept in this computer's key store, never in a file. On Linux, in this preview, the key is kept for the session only.

1:25 Model and connection

The Model list is read from the service with my key, and I choose a model from it. Test connection says: Connected; a test command worked. If the key is not accepted or the credit has run out, the same line says so, and it also tells what to do. Project data the AI asks for is sent to this service on its terms. Cyborvent receives none of it.

2:02 First request

I close Settings, open the Sample project and choose PirtoCAD on the command line. I type a request: how many rooms are in the drawing? And the AI answers in the panel: there are five rooms. It only read the project, so nothing changed; a change would wait until I click Apply.

2:31 Removing the key

You can remove the key at any time with Forget key, and turn the AI off on the same page. You can download PirtoCAD free from pirtocad.com.

All Academy episodes