Skip to content
Sign Up Free
Chat and knowledge bases

AnythingLLM: connect to BetterToken

Connect BetterToken to AnythingLLM Desktop for chat and questions about workspace documents.

Connect BetterToken to AnythingLLM Desktop for chat and questions about workspace documents.

Key settings

FieldValue
Base URLhttps://bettertoken.ai/v1
API KeyBetterToken API Key
Modelmodel plaza

Prerequisites

Sign up and get a BetterToken API Key

Already have an account? Sign in, top up, then create a key in the console.

Install

Install AnythingLLM using the official instructions:

Manual setup

Open Settings → AI Providers → LLM and select Generic OpenAI.

AnythingLLM: AI Providers → LLM → Generic OpenAI, Base URL, API Key, Selected Model

BetterToken configuration example. Enter your own BetterToken API Key.

  • Base URL: https://bettertoken.ai/v1
  • API Key: BetterToken API Key

Under Selected Model, choose a model. If the list is empty, enter the exact Model ID. Click Save changes. Open a workspace that uses the system model.

Verify the connection

Start a new chat and select your BetterToken model. Send Remember the word LANTERN and reply OK. Then ask What word did I ask you to remember?. The expected replies are OK and LANTERN.

Switch models

Select another BetterToken model. If it is missing, check the exact Model ID in the model plaza.

Common errors

ErrorWhat to check
401Check your BetterToken API Key and remove extra spaces.
404Check the URL and request path. https://bettertoken.ai/v1/chat/completions.
model not foundCopy the exact Model ID from the model plaza.

Advanced setup

For document Q&A, select AnythingLLM Embedder in the embedding settings. Create test.txt with the line Project code: BT-DOC-42. Upload it to the workspace and click Save and Embed. Ask What is the project code in test.txt?. The expected answer is BT-DOC-42.

Technical details

  • OpenAI Chat Completions: POST https://bettertoken.ai/v1/chat/completions
  • App documentation