API Keys
Fliiq needs at least one LLM API key. Add them to~/.fliiq/.env:
.env
Recommended Models
For best results with Anthropic (recommended provider):| Model | Best for | Notes |
|---|---|---|
| Claude Sonnet 4.5 | Most tasks | Best balance of speed and capability. Recommended default. |
| Claude Opus 4.6 | Heavy computation | Complex refactors, deep research, multi-step reasoning. Overkill for most use cases — Sonnet handles the vast majority of tasks well. |
Provider Switching
When multiple API keys are set, Fliiq uses the default priority order (Anthropic > OpenAI > Gemini). Override this per-command with the--provider flag:
FLIIQ_PROVIDER in your .env:
.env
--providerflag (highest priority)FLIIQ_PROVIDERenvironment variable- First API key found (Anthropic > OpenAI > Gemini)
--provider.
Model Selection
Switch models per-command with--model (or -m):
Built-in Aliases
Default aliases shipped withfliiq init:
| Anthropic | OpenAI | Gemini |
|---|---|---|
opus-4.6 | gpt-4.1 | gemini-2.5-pro |
sonnet-4.5 | gpt-4.1-mini | gemini-2.5-flash |
sonnet-4.0 | gpt-4o | |
haiku-4.5 | gpt-4o-mini | |
o3 | ||
o3-mini | ||
o4-mini |
Custom Aliases
Aliases are defined in~/.fliiq/models.yaml (created by fliiq init). Add your own for Ollama, Mistral, DeepSeek, or any other provider:
Persistent Model Override
Override the default model for a provider via environment variable in your.env:
.env
--model flag (highest) > env var (ANTHROPIC_MODEL, etc.) > hardcoded default.
Self-Hosted LLMs
Fliiq can connect to any OpenAI-compatible server — Ollama, vLLM, llama.cpp, LM Studio, LocalAI, or any other server that implements the OpenAI API. SetOPENAI_BASE_URL to point Fliiq at your local server:
.env
OPENAI_API_KEY must still be set (most local servers ignore it — any non-empty value works).
Quick Start with Ollama
~/.fliiq/.env:
.env
--provider:
Anthropic-Compatible Proxies
If you use a proxy that implements the Anthropic API, setANTHROPIC_BASE_URL:
.env
Self-hosted models vary in capability. Fliiq’s agent loop works best with models that support tool/function calling. Most large models (Llama 3.2+, Mistral, Qwen) support it via the OpenAI-compatible API.
Integration Credentials
Optional — add these when you need the corresponding skills:Google (OAuth)
.env
fliiq google auth — the OAuth flow that authorizes Fliiq to access Gmail, Google Calendar, Drive, Sheets, Docs, and Slides. See Google Integration for full setup.
Used by: send_email, receive_emails, mark_email_read, archive_email, delete_email, google_calendar, google_drive, google_sheets, google_docs, google_slides
Gmail — Fliiq’s Bot Email
.env
Gmail — App Password (legacy)
.env
Twilio (SMS)
.env
send_sms, receive_sms
Telegram
.env
TELEGRAM_ALLOWED_CHAT_IDS restricts which chats the bot responds to.
Used by: send_telegram, send_telegram_audio, Telegram real-time listener (daemon)
MiniMax (Text-to-Speech)
.env
text_to_speech
Web Search
.env
web_search
Spotify
.env
spotify
Directory Structure
Global (~/.fliiq/)
Created by fliiq init. Used from any terminal.
| Path | Purpose |
|---|---|
.env | API keys and credentials |
user.yaml | User profile — name, labeled email accounts (details) |
models.yaml | Model aliases for --model flag (details) |
google_tokens.json | OAuth tokens for authorized Google accounts (auto-managed) |
memory/ | Persistent memory files |
memory/MEMORY.md | Curated memory (always loaded into prompt) |
audit/ | Audit trails from every agent run |
skills/ | User-generated skills (available globally) |
Project (.fliiq/) — optional
Created by fliiq init --project. Overrides global for this project.
| Path | Purpose |
|---|---|
SOUL.md | Agent personality overrides |
playbooks/ | Custom domain playbooks |
mcp.json | MCP server connections |
memory/ | Project-specific memory |
audit/ | Project-specific audit trails |
jobs/ | Scheduled job definitions (YAML) |
skills/ | Project-specific skills |
Bundled (inside the package)
Ships with Fliiq. Cannot be modified directly.| Path | Purpose |
|---|---|
data/skills/core/ | 33 bundled skills |
data/soul/SOUL.md | Default agent personality |
playbooks/coding.md | Default coding playbook |
Config Resolution
When Fliiq looks for a resource (skills, SOUL.md, playbooks, memory):- Project
.fliiq/— checked first - Global
~/.fliiq/— fallback - Bundled defaults — final fallback