Configuration Methods
Settings UI (Recommended)
- Open Asta and navigate to Settings → API Keys
- Enter your API keys for each provider
- Click Save
backend/asta.db and never committed to git.
Environment Variables
Alternatively, set keys inbackend/.env:
Provider Setup
Claude (Anthropic)
Get API Key
- Go to console.anthropic.com
- Sign up or log in
- Navigate to API Keys
- Create a new key
Configure in Asta
Settings UI:
- Go to Settings → API Keys
- Paste key in Anthropic API Key field
- Save
.env:OpenRouter
OpenRouter provides access to 300+ models through a single API.Get API Key
- Go to openrouter.ai/keys
- Sign up or log in
- Create a new API key
OpenAI
Get API Key
- Go to platform.openai.com/api-keys
- Sign up or log in
- Create a new secret key
Google Gemini
Get API Key
- Go to aistudio.google.com
- Click Get API Key
- Create a new key
Groq
Get API Key
- Go to console.groq.com
- Sign up or log in
- Create an API key
Hugging Face
Used for image generation fallback (FLUX.1-dev).Get API Token
- Go to huggingface.co/settings/tokens
- Create a new token (read access is sufficient)
Integration API Keys
Spotify
Spotify requires a Client ID and Client Secret for search and playback.Create Spotify App
- Go to developer.spotify.com/dashboard
- Log in with your Spotify account
- Click Create app
- Fill in:
- App name: “Asta” (or your choice)
- App description: “Personal AI workspace”
- Redirect URI: See step 2 below
- Accept terms and click Create
Configure Redirect URI
For playback control, add this redirect URI in your app settings:Production:Local development:
Spotify requires
127.0.0.1 (not localhost) for local development.Get Credentials
- Open your app in the Spotify dashboard
- Go to Settings
- Copy Client ID and Client secret
Telegram Bot
Create Bot
- Open Telegram and message @BotFather
- Send
/newbot - Follow prompts to choose a name and username
- Copy the bot token (format:
1234567890:ABC...)
Configure in Asta
Settings UI:
- Go to Settings → API Keys
- Paste token in Telegram Bot Token field
- Save
.env:(Optional) Restrict Access
To allow only specific Telegram users:
- Get your Telegram user ID (message @userinfobot)
- Add to
.env:
Pingram (Voice Calls)
For voice reminders via phone calls.Get Credentials
- Go to app.notificationapi.com
- Sign up and create a project
- Copy Client ID and Client Secret
Viewing Key Status
To check which keys are configured:- Open Settings → Status
- View APIs section
- Green checkmark = key is set and working
- Red X = key is missing or invalid
Security
- Keys in Settings UI are stored in
backend/asta.db - Database keys take precedence over
.envvariables - The
.envfile is in.gitignore - Only
.env.example(with empty values) is tracked in git