Agent 102: Run jobs with open modules
In this tutorial you install an agent on a Windows, Linux, or macOS machine, add the three open-source modules — Open Spreadsheet, Open PDF, and Open CAD — and run one extraction with each from the Istari Digital web app. None of them needs a commercial license, so this is the quickest way to get a working agent for spreadsheets, PDFs, and neutral CAD files.
An agent is the program that runs jobs for the Istari Digital Platform. Each module installed on it adds a tool that users can select when they create a job. Pick your operating system in any tab below; every other tab on the page follows your choice.
Time: ~30 minutes.
Prerequisites
- A Tenant Administrator account (or organization administrator) in the Istari Digital web app. You need it to generate the agent's key and grant tool access.
- A machine for the agent, with administrator rights on it:
- Windows: Windows 10, Windows 11, Windows Server 2019, or Windows Server 2022.
- Linux: RHEL 9 or Ubuntu 22.04 LTS.
- macOS: Apple Silicon, macOS 14 or later.
- Access to the Customer Portal, where you download the agent, the modules, and the CLI.
Download the three sample files you will test with:
-
Group3-UAS-Requirements.xlsx
for Open Spreadsheet -
example_document.pdf
for Open PDF -
cube_sphere.FCStd
for Open CAD
Step 1 — Generate the agent's key
The agent signs in to the Istari Digital Platform with its own key. Generating the key also registers the agent.
- In the web app, open Agents and click Generate Key.
- Optionally enter an Agent name, then click Generate. This name only labels the key; you set the name the agent shows in the web app in Step 3.
- Click Download credentials. The browser saves
agent-credentials-<key id>.json. - Copy your API URL from Settings → Developer Settings → Endpoints.
The credentials file holds the agent's private key and is shown only once. Keep it as safe as a password.
Step 2 — Install the agent
Download the agent installer for your OS from the Istari agent category of the Customer Portal — see Download installers — then install it. X.Y.Z stands for the agent version you downloaded.
- Windows
- Linux
- macOS
Double-click istari-agent_X.Y.Z_windows-amd64.msi and accept the defaults. Leave Run on startup ticked so the agent starts each time you sign in.
# Ubuntu
sudo apt-get update && sudo apt-get install -y libmpv1
sudo dpkg -i istari-agent_X.Y.Z_amd64.deb
# RHEL
sudo rpm -i istari-agent_X.Y.Z_amd64.rpm
The agent installs to /opt/local/istari_agent/.
sudo installer -pkg istari-agent_X.Y.Z_macos-arm64.pkg -target /
The agent installs to /Applications/istari_agent/.
Step 3 — Connect the agent to the platform
Move the credentials file from Step 1 into a folder your account owns, then create the agent's configuration file. Do both as the account that will run the agent — the agent only reads configuration from that account's profile.
- Windows
- Linux
- macOS
| File | Location |
|---|---|
| Credentials | %USERPROFILE%\istari_digital\agent-credentials-<key id>.json |
| Configuration | %LOCALAPPDATA%\istari_digital\istari_digital_config.yaml |
| File | Location |
|---|---|
| Credentials | ~/.istari_digital/agent-credentials-<key id>.json (run chmod 600 on it) |
| Configuration | ~/.config/istari_digital/istari_digital_config.yaml |
| File | Location |
|---|---|
| Credentials | ~/.istari_digital/agent-credentials-<key id>.json (run chmod 600 on it) |
| Configuration | ~/Library/Application Support/istari_digital/istari_digital_config.yaml |
Put this in the configuration file. Replace the API URL with the one you copied in Step 1, and the credentials path with the full path to your file. Replace <your initials> in the display name too: that is the name you look for in the web app in Step 9, and initials keep it apart from other people's tutorial agents.
default: {}
agent:
istari_digital_agent_digital_api_url: "https://api.example.istari.app"
istari_digital_agent_identity_service_secret_file: "<full path to agent-credentials-<key id>.json>"
istari_digital_agent_identity_service_enabled: true
istari_digital_agent_display_name: "tutorial-agent-<your initials>"
On Windows, double the backslashes in the path (C:\\Users\\...) or use forward slashes.
Step 4 — Start the agent
- Windows
- Linux
- macOS
Launch Istari Agent from the Start menu. An Istari Digital icon appears in the system tray once it is running.
On a server with no desktop, first add istari_digital_agent_headless_mode: true under agent: in the configuration file. Then start the agent:
/opt/local/istari_agent/istari_agent_X.Y.Z
To keep it running after you log out, run it as a systemd service — see Run the agent as a service.
"/Applications/istari_agent/istari_agent_X.Y.Z.app/Contents/MacOS/istari_agent_X.Y.Z"
Run it without sudo. An Istari Digital menu appears in the menu bar.
Within a minute, the agent log confirms it reached the platform with a line like this:
INFO - Got display name 'tutorial-agent-rb' from server
On Linux and macOS the log prints in the terminal where you started the agent. On Windows, right-click the tray icon to open it. If the line does not appear, see the log locations and common errors in your OS's install guide.
Step 5 — Install FreeCAD
Open Spreadsheet and Open PDF bring everything they need. Open CAD drives FreeCAD 1.0 or later, a free, open-source CAD application, which must be installed on the same machine.
- Windows
- Linux
- macOS
Download and run the Windows installer from freecad.org. Keep the default location, C:\Program Files\FreeCAD 1.0\.
Install FreeCAD 1.0 or later from freecad.org. On a server with no desktop, also install the libraries used to render CAD views:
# Ubuntu 22.04
sudo apt-get install -y libosmesa6 libgl1 libx11-6 libxext6 libxrender1 libsm6 libice6 libfontconfig1 libfreetype6
On RHEL, the Open CAD module provisions FreeCAD and its rendering libraries for you. See the Open CAD installation notes for details.
Download FreeCAD from freecad.org and drag FreeCAD.app into Applications.
The module finds FreeCAD on its own. If you installed it somewhere else, set open_cad_freecad_installation_dir as described on the Open CAD page.
Step 6 — Add the three modules
Download the Open Spreadsheet, Open PDF, and Open CAD packages for your OS from the Integrations category of the Customer Portal, the same way you downloaded the agent. Unpack each one into the agent's istari_modules folder.
- Windows
- Linux
- macOS
Extract each .zip into %LOCALAPPDATA%\istari_agent\istari_modules.
Create the folder, then untar each of the three archives you downloaded into it. Replace <archive> with the archive's file name.
sudo mkdir -p /opt/local/istari_agent/istari_modules
sudo tar -xzf <archive>.tar.gz -C /opt/local/istari_agent/istari_modules
Create the folder, then untar each of the three archives you downloaded into it. Replace <archive> with the archive's file name.
mkdir -p ~/Library/Application\ Support/istari_agent/istari_modules
tar -xzf <archive>.tar.gz -C ~/Library/Application\ Support/istari_agent/istari_modules
Each module should now be a folder containing a module_manifest.json. The running agent loads new folders on its own — no restart needed — and logs a line such as Adding module @istari:open_pdf 1.8.4 for each one.
Step 7 — Install the Istari Digital CLI
You publish modules with the Istari Digital CLI, stari. Skip to Step 8 if stari --version already works on the agent machine.
In the Customer Portal, open Assets → Utilities → Istari Digital CLI and download the archive for your OS. Unpack it and add stari to your PATH. The executable inside keeps its platform name, for example stari_macos-arm64, so replace <archive>, <folder>, and <executable> with the names you see.
- Windows
- Linux
- macOS
Expand-Archive -Path <archive>.zip -DestinationPath .
cd <folder>
.\<executable>.exe path add --yes
tar -xzf <archive>.tar.gz
cd <folder>
chmod +x <executable>
./<executable> path add --yes
tar -xzf <archive>.tar.gz
cd <folder>
chmod +x <executable>
./<executable> path add --yes
Run this as your own account, not with sudo. Open a new terminal and check that stari --version works.
Next, sign the CLI in to the platform with a key of your own — a User key, not the agent's key:
-
In the web app, click your avatar → Developer → Generate Key, then Download credentials. Store the file next to the agent's credentials from Step 3.
-
Run these commands with the API URL from Step 1 and the path to your user credentials file:
stari client init https://api.example.istari.app --identity-service --credentials-file <path to istari-credentials-<key id>.json> --yesstari client ping
For more detail, see Get started with the CLI.
Step 8 — Publish the modules and grant access
Users see a module's functions only after its manifest is published to the Istari Digital Platform and they have tool access. Do this once per module version.
On the agent machine, list the folders in istari_modules to see the three module folders from Step 6, then publish each module's manifest. Run the publish command once per module, replacing <module folder> with its folder name.
- Windows
- Linux
- macOS
dir $env:LOCALAPPDATA\istari_agent\istari_modules
stari client publish $env:LOCALAPPDATA\istari_agent\istari_modules\<module folder>\module_manifest.json
ls /opt/local/istari_agent/istari_modules
stari client publish /opt/local/istari_agent/istari_modules/<module folder>/module_manifest.json
ls ~/Library/Application\ Support/istari_agent/istari_modules
stari client publish ~/Library/Application\ Support/istari_agent/istari_modules/<module folder>/module_manifest.json
Then grant yourself access to the three tools:
- In the web app's list of people, click Edit user (pencil) on your own row and open the Tool access tab.
- Use Add tool to add Open Spreadsheet, Open PDF, and FreeCAD. Each starts with every function selected.
- Click Save, and repeat for anyone else who will run these jobs.
Step 9 — Check the agent in the web app
Confirm the platform sees your agent with all three modules before you run jobs.
- In the web app, open Agents → All Agents. Set Search by to Name and type the display name you set in Step 3, for example
tutorial-agent-rb. - Check that its Status badge is green, for example Idle, and its Host OS matches your machine.
- Check that Installed Modules shows a chip for each of Open Spreadsheet, Open PDF, and Open CAD. Hover a chip to see the module's name and version, or use +N more if the list is cut off.
- Click the agent's row. In the panel that opens, the Modules & Functions tab lists each module with its functions, such as
@istari:extract. A module without functions has not been published yet — go back to Step 8.
If a module is missing from Installed Modules, check that its folder in istari_modules contains a module_manifest.json, then restart the agent. New module folders normally load without a restart. A restart is needed when you replace the files of a module the agent has already loaded.
Step 10 — Run a job with each module
- In the web app, open Resources and upload the three sample files.
- Select a file, click Create Job, and pick the tool and function from the table below.
- Click Execute Function and wait for the status to reach Completed, then refresh the page.
| Sample file | Tool | Function | What you get |
|---|---|---|---|
Group3-UAS-Requirements.xlsx | open_spreadsheet | @istari:extract | One CSV per worksheet, named cells as JSON, and HTML and PDF renderings |
example_document.pdf | open_pdf | @istari:extract | The document's text and metadata |
cube_sphere.FCStd | freecad | @istari:extract | Geometry, properties, parameters, and rendered views |
Expand each file in the tree to open the resources the job produced.
If a job stays Pending, no online agent has a matching module for that OS. Repeat the checks in Step 9. See How agents match jobs and Troubleshooting for more.
What you learned
| Concept | What happened |
|---|---|
| Agent | You installed the program that runs jobs and connected it to your tenant with its own key. |
| Modules | Each module you unpacked added a tool to the agent, with no restart. |
| Publish and access | Publishing a manifest made a tool's functions visible; tool access let you run them. |
| Vendor-neutral outputs | Each extraction turned a spreadsheet, PDF, or CAD file into open resources anyone can read. |
What's next
- Build a digital thread. Your agent is ready for Web app 101, which uses Open Spreadsheet to register, extract, revise, and compare a design.
- Go deeper on the agent. The full install guides for Windows, Linux, and macOS cover per-machine installs, services, proxies, and upgrades.
- Add more tools. Module deployment covers modules that drive licensed tools such as Cameo or Creo.