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

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:

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

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

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:

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

  1. Click New …. The AI Account dialog opens.
  2. Under Type, choose the provider (see table). Below it, a note shows where to get the key.
  3. Enter a Name if you have several accounts of the same type (for example "Claude private").
  4. Enter the API key and, if necessary, the Address. If you leave the address empty, the provider's default is used.
  5. Choose the Model. Load Models retrieves the list of available models from the provider; you can also type in a model name.
  6. 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

  1. Install Claude Code (claude.com/claude-code).
  2. Create an account of type Claude (subscription via Claude Code).
  3. Click Sign In and sign in with your Claude account in the browser.
  4. 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.

  1. 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.
  2. 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.
  3. 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.

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.