AI Assistant and AI accounts
The AI Assistant works directly in your open document: it draws, searches for and places images, traces, aligns, and looks things up on the web. This chapter shows you how to use it and how to set up the accounts for the AI providers.
AI Assistant
Open the assistant with Tools > AI Assistant (Ctrl+Alt+K) or via Window > Dockers > AI. Like any other docker, you can dock it or let it float freely.
Layout
- At the top, you choose the AI Account. The ⚙ button opens the AI accounts, and New starts a new conversation (the previous history is then no longer sent to the AI).
- In the middle is the history: your requests, the AI's answers, and, marked with ✓, the individual work steps (for example "View document", "Draw (script)", "Image Search").
- Below it, a status line shows how long the AI has been working and what it is currently doing.
- At the bottom, you enter your request. Send sends it.
The conversation is saved and is available again after a restart.
What the assistant can do
The assistant works with tools that TANGENTA provides to it:
- view the document, individual objects, and the page (also as an image, to check its result)
- draw shapes and make changes by script, insert complete graphics such as logos and icons as SVG
- run menu commands (for example Group, Weld, Align, Convert to Curves)
- select and delete objects, switch pages
- find, view, and insert images via Image Search, load images from an address
- trace images (vectorize)
- search the web and read web pages (see the "Web search" section below)
- export
For inserted images, the assistant names the author, the license, and the license terms. It deletes or overwrites objects it did not create itself only if you explicitly ask it to; likewise, it exports only on request.
Video: Setting up and using AI in TANGENTA – logo, text, and photo by request
Writing requests
- Be specific about what you want created, for example "Draw a logo for a bakery" or "Put a photo of the Matterhorn in the top right corner".
Entersends,Shift+Enterstarts a new line.- Select objects beforehand if the request refers to them: the assistant sees what is selected.
- To refine, simply keep writing, for example "Larger font, dark blue color". Whatever the assistant has created itself in the conversation, it replaces instead of placing a second version on top.
May edit
The may edit checkbox below the input field determines whether the assistant may change the document. Without the checkmark, it only reads (document, web, image search) and explains what it would do. TANGENTA remembers the setting. The same default is available under Tools > Options > Global > AI as AI may modify the document (default in the AI window).
Stopping and undoing
- While the assistant is working, the button is labeled Stop. Use it to stop the assistant; changes already made remain.
- Everything the assistant changes in one answer is one undo step ("AI: …"). A single
Ctrl+Zundoes the entire answer.
Limits, costs, and tokens
After each answer, a line shows the model, number of steps, duration, and tokens used. Tokens are the units by which providers bill; every work step (including viewing the page) uses some.
An answer ends after at most 40 rounds, 500,000 tokens, or 20 minutes. The assistant reports this; with the request "continue", it resumes the work.
The costs depend on the account:
- Claude (subscription via Claude Code) uses your Claude subscription (Pro or Max), without API costs.
- For all accounts with an API key, the provider bills by usage.
- Your own Ollama or LiteLLM server costs only what your server costs.
Note: The assistant treats content from the web and from image archives as data, not as instructions.
AI accounts
You set up the accounts under Tools > Options > Global > AI (Ctrl+J opens the options). The AI Assistant and Optimize Image with AI use the same accounts. Keys remain local in the settings of your user account.
Creating an account
- Click New …. The AI Account dialog opens.
- Under Type, choose the provider (see table). Below it, a note shows where to get the key.
- Enter a Name if you have several accounts of the same type (for example "Claude private").
- Enter the API key and, if necessary, the Address. If you leave the address empty, the provider's default is used.
- Choose the Model. Load Models retrieves the list of available models from the provider; you can also type in a model name.
- Confirm with OK.
| Type | What it requires |
|---|---|
| Claude (subscription via Claude Code) | Claude Code installed and a Claude subscription (Pro or Max). No key. Models: opus, sonnet, haiku, or a model ID. |
| Claude (API key) | key from platform.claude.com/settings/keys; billed by usage |
| OpenAI | key from platform.openai.com/api-keys. For Azure OpenAI, enter your own address. |
| Google Gemini | key from aistudio.google.com/apikey |
| DeepSeek | key from platform.deepseek.com. deepseek-flash can also see images (view of the page), deepseek-v4-pro cannot. |
| Ollama | your own Ollama server, address with /v1 (default http://localhost:11434/v1). The model must support tools, for example qwen3 or llama3.1. |
| LiteLLM | your own LiteLLM proxy, address with /v1, key if required |
List buttons
| Button | Effect |
|---|---|
| New …, Edit …, Remove | create, change (also by double-clicking), delete an account |
| Set as Default | The account is marked with ★ and becomes the default in the AI window. |
| Test | Checks the selected account with a small request. The result appears in green (✔) or red (✘) below the buttons. |
| Sign In | Claude Code only: starts the sign-in (equivalent to claude auth login) in a separate window and in the browser. Then choose Test. |
Setting up Claude via subscription
- Install Claude Code (claude.com/claude-code).
- Create an account of type Claude (subscription via Claude Code).
- Click Sign In and sign in with your Claude account in the browser.
- Click Test.
If TANGENTA cannot find Claude Code, enter the path to the program under Path to Claude Code. If left empty, TANGENTA searches automatically (PATH, npm, ~/.local/bin).
Note: The Claude Code account cannot pass images. For Optimize Image with AI, you need an account with an API key.
MCP interface for external programs
Programs that speak the Model Context Protocol (MCP) – such as Claude Code, Claude Desktop or your own agents – can control TANGENTA: view the document, draw, insert SVG and images, run scripts and export. They are the same tools the AI assistant uses.
- Open Tools > Options > Global > MCP and switch on MCP interface for external programs. The Port: is fixed (default 47811); the Key: is generated when you first switch it on, and Generate new replaces it.
- Copy command for Claude Code puts the command
claude mcp add --transport http tangenta … --header "Authorization: Bearer …"on the clipboard. Run it once in a terminal. - Install Claude skill writes the instructions for Claude to
~/.claude/skills/tangenta/SKILL.md. Claude then knows how to work with TANGENTA (look first, then change, check the result as an image).
Without the option, use the start parameter --mcp (port from the options) or --mcp=PORT for one session, for example tangenta --mcp=47811 poster.tng.
| Setting | Effect |
|---|---|
| Programs may change the document (otherwise read only) | when off, programs only get the viewing tools |
| Port: | fixed port on 127.0.0.1; a second TANGENTA with the same port does not start the interface |
The interface only accepts connections from this computer and requires the key. While it runs, the address and key are also stored in the file mcp.json in the settings folder; its path is shown on the options page.
Web search
Under Tools > Options > Global > Web Search, you specify what the assistant uses to search the web.
| Setting | Meaning |
|---|---|
| Search service | SearXNG (own server) or Brave Search API |
| SearXNG address | address of your SearXNG server. Its settings.yml must contain the entry json under search > formats. |
| SearXNG key (if required) | only needed if your server requires one |
| Brave key | key from api-dashboard.search.brave.com (with a free quota) |
Test checks the settings with a test search.