Zum Inhalt
aichat-Logo

aichat via Tokonomix

Füge aichat’s config.yaml einen Tokonomix-Client hinzu — gib dem Rust-CLI, der Shell und dem REPL 130+ Modelle und Konsens mit einem Schlüssel.

openai-compatible client (config.yaml)CLIMIT · Open SourcemacOS · Windows · Linux
aichat — Allround-Rust-LLM-CLI, Shell und REPL, via Tokonomix

Was ist aichat?

aichat ist ein in Rust geschriebenes Allround-LLM-CLI — ein Einzel-Befehl, ein interaktiver Shell-Assistent und ein REPL in einem Tool. Es registriert openai-compatible Clients in config.yaml, so bindet sich Tokonomix ein: ein Client-Block, 130+ Modelle.

  • Läuft als Einzel-CLI, Shell-Integrations-Assistent oder interaktives REPL.
  • Custom-Backends kommen unter clients: als type: openai-compatible (name, api_base, api_key, models).
  • Per-Modell-supports_function_calling aktiviert Tool-Calling.
  • Open Source; ein Modell wird als <client>:<model> adressiert.

Warum aichat über Tokonomix leiten?

  • Ein openai-compatible Client-Block erreicht 130+ Modelle hinter einem einzigen Schlüssel.
  • Wähle tokonomix:tokonomix-consensus für anspruchsvolle Reasoning-Turns; füge dem Client ein direktes Modell für hochvolumige Bearbeitungen hinzu.
  • Per-Call-Ausgabenlimits begrenzen die Nutzung, und Regions-/Ursprungs-Routing hält sensitive Prompts konform.
  • Kosten werden centgenau in deinem Tokonomix-Dashboard gemessen.

Tokonomix in config.yaml verbinden

Füge unter clients: einen Tokonomix-Client mit type: openai-compatible, der api_base, deinem api_key und einer models-Liste hinzu.

# ~/.config/aichat/config.yaml
clients:
  - type: openai-compatible
    name: tokonomix
    api_base: https://tokonomix.ai/api/v1
    api_key: tok-your-key
    models:
      - name: anthropic/claude-sonnet-4-6
        supports_function_calling: true
      # Opt-in (planning/review only, no tool-calling): - name: tokonomix-consensus

# aichat -m tokonomix:anthropic/claude-sonnet-4-6 "refactor this"

Funktionsfähigkeit prüfen

  • Füge den openai-compatible-Client-Block mit deinem Schlüssel zu config.yaml hinzu.
  • Führe einen kleinen Prompt aus: aichat -m tokonomix:tokonomix-consensus "refactor this".
  • Bestätige den Aufruf und die Token-Nutzung in deinem Tokonomix-Dashboard.

Modellauswahl

Welches Modell und welchen Endpunkt soll mein Agent verwenden?

Wähle nach dem, was dein Agent tut, und tausche die Modell-ID jederzeit aus — jedes Modell im Katalog funktioniert über denselben Schlüssel.

Was dein Agent tutVerwende dies
Bearbeitet Dateien / ruft Tools auf und streamt Antworten (die meisten Coding-Agents)Ein Anthropic-Modell über den Anthropic-Endpunkt (Tools + Streaming funktionieren beide)
Ruft Tools auf, benötigt aber kein Streaming (beliebiges Modell)Der OpenAI-kompatible Endpunkt mit einer einzelnen Modell-ID
Benötigt Tools und Streaming auf einem Nicht-Anthropic-ModellVerwende vorerst Non-Streaming — Streaming-Tool-Calls für andere Anbieter sind noch nicht aktiviert
Normaler Chat, keine ToolsBeliebiger Endpunkt; Streaming ist in Ordnung
Möchte ein modellübergreifendes Urteil (Konsens) bei einer wichtigen AntwortModell auf tokonomix-consensus am OpenAI-kompatiblen Endpunkt setzen — Hinweis: Konsens weist Tool-Anfragen ab (kein Tool-Calling)
Endpunkt & API-Referenz (technisch)

anthropic-messages → https://tokonomix.ai/api/anthropic — tools ✓, streaming ✓ (ein Anthropic-Modell verwenden). openai-completions → https://tokonomix.ai/api/v1 — tools ✓ (Single-Model-Passthrough), Streaming mit Tools noch nicht verfügbar. Normaler Chat: Streaming funktioniert auf beiden. Konsens: openai-completions, Modell tokonomix-consensus, keine Tools. Modell-ID gegen einen beliebigen Slug aus GET /api/v1/models austauschen.

Alle Modelle ansehen →

Related agents