Appearance
Configuration
Iris is configured through config/iris.php. All settings have sensible defaults, but understanding what they control helps you tune the system for your needs.
How Configuration Works
The base configuration lives in config/iris.php. To customize without modifying core files, create config/iris-custom.php and override specific values. See Customization for the full details on merge strategies.
php
// config/iris-custom.php
return [
'temporal' => [
'timezone' => 'America/Chicago', // Default for all users
],
];TIP
Individual users can override the default timezone in Settings > Profile.
Access Settings
These are set in .env.
| Variable | Default | Description |
|---|---|---|
IRIS_ADMIN_EMAILS | empty | Comma-separated emails of administrators: they can open the Horizon dashboard and use the shell and filesystem tools |
IRIS_REQUIRE_EMAIL_VERIFICATION | true | Require users to verify their email address before using Iris |
TRUSTED_PROXIES | empty | Comma-separated IPs or CIDR ranges of the proxies in front of Iris, or * |
bash
# .env
IRIS_ADMIN_EMAILS=[email protected],[email protected]
IRIS_REQUIRE_EMAIL_VERIFICATION=trueHorizon access: Horizon job payloads include chat messages and attached images, so the dashboard at /horizon is limited to the users listed in IRIS_ADMIN_EMAILS (matched case-insensitively). When APP_ENV=local, any logged-in user can open it. In every other environment an empty list locks everyone out.
Shell and filesystem tools: These tools act on the server itself, so they're for administrators only. When IRIS_SHELL_ENABLED or IRIS_FILESYSTEM_ENABLED is on, only the users in IRIS_ADMIN_EMAILS can use those tools. That holds in every environment, including local development (APP_ENV=local doesn't open them up the way it opens Horizon), so add your own email to use them. Everyone else's Iris isn't offered them, and their delegated tasks run without them. If you enable either tool and leave IRIS_ADMIN_EMAILS empty, nobody can use it. Administrators share one workspace (IRIS_WORKSPACE_ROOT), and their commands all run as the server's one operating system user. See Shell Commands and Filesystem Tools.
Email verification: New users get a verification email after registering, and again whenever they change their address. Until they verify, they can reach their profile settings but not chat, the API, or integration settings (Google Calendar, Telegram, heartbeat, weather). If your install has no working mailer, set IRIS_REQUIRE_EMAIL_VERIFICATION=false and every user is treated as verified. The default .env.example sends mail to the Mailpit container from docker-compose.yml (inbox at http://localhost:8025). With MAIL_MAILER=log, the verification link is written to storage/logs/laravel.log instead.
Behind a proxy or tunnel: If Iris sits behind a load balancer, Cloudflare Tunnel, or ngrok that handles HTTPS, set TRUSTED_PROXIES to the proxy's address. A tunnel running on the same machine connects from 127.0.0.1. Without it, Laravel sees those requests as plain HTTP and rejects verification links with a 403, because they were signed for the https:// URL. It also treats every request as coming from the proxy's IP, so rate limits keyed by IP are shared by all users. Only use * when nothing can reach Iris except through the proxy, since a trusted proxy's X-Forwarded-For header decides the client IP.
Providers
Every Iris subsystem that calls an LLM has a configurable provider setting. By default, Iris uses Anthropic for chat and background tasks, OpenAI for embeddings, and ElevenLabs for text-to-speech. You can override any of these to use a different Prism provider — including local providers like Ollama.
php
// config/iris-custom.php
return [
'agent' => [
'provider' => 'ollama',
'model' => 'llama3.1:8b',
],
];Provider values are strings matching Prism's registered provider names (e.g., anthropic, openai, ollama, gemini, mistral, groq, xai, deepseek). See the Local Setup Guide for running Iris entirely with local models.
Agent Settings
These control the core chat behavior.
| Setting | Default | Description |
|---|---|---|
agent.provider | anthropic | Prism provider for chat |
agent.model | claude-sonnet-5-5 | The model used for chat |
agent.max_steps | 60 | Maximum tool iterations per request |
agent.request_timeout | 120 | HTTP timeout for each API request, in seconds |
What max_steps controls: When Iris uses tools, it can iterate multiple times before responding. A request like "schedule a meeting and remind me later" might use 2-3 tools. The default of 60 allows for complex multi-step tasks while preventing runaway loops.
Context Settings
These control what information Iris has access to when responding.
| Setting | Default | Description |
|---|---|---|
context.recent_summaries | 3 | Number of conversation summaries included |
How context builds: Each request includes recent messages from the active thread, recent summaries from that thread, pinned skill content, recalled memories, calendar events, weather, the current time, and briefs from your other threads. History is loaded token-budget-first — Iris pulls turns newest-first until the available token budget is exhausted.
Context Management
Iris uses a token-budget system to keep conversation history within model limits. History loads from the latest summary boundary forward and fills the remaining budget with the most recent turns; older turns are represented by summaries rather than resent. See Context Management for the full lifecycle.
Token Budget Settings
| Setting | Default | Description |
|---|---|---|
context.window | 200000 | The context window size (in tokens) of the configured model |
context.token_budget_ratio | 0.70 | Fraction of the context window allocated to conversation history |
context.compaction_threshold | 0.75 | Fraction of the context window the unsummarized history may fill before older messages are summarized |
context.prune_protect_turns | 2 | Number of recent turns whose tool results and arguments keep the larger protected_result_max cap |
context.protected_result_max | 10000 | Characters kept from each tool result or argument in the protected turns. Smaller items pass through untouched |
context.old_result_preview | 200 | Characters kept from each tool result in older turns, followed by [truncated] |
context.old_argument_preview | 1000 | Characters kept from each string tool argument in older turns. Higher than the result preview because arguments record what Iris did |
context.conversation_load_limit | 500 | Most messages loaded from the database per request. The token budget normally stops loading well before this |
window: Set this to match your configured model's context window. The default model, Claude Sonnet 5.5, has a 1M token context window, so set this to 1000000 to use all of it. On Anthropic's 1M models that size is the default: no beta header or extra setting is needed. The default of 200000 is deliberately conservative: it keeps per-request token usage down and stays safe if you switch to a 200K model like Haiku 4.5. Anthropic's context window reference lists the window for every model.
token_budget_ratio: Controls how much of the context window is reserved for history. At the default of 0.70, a 200K window allocates 140K tokens for conversation messages. Raise this if you want more history; lower it if system prompts and tool definitions are large.
compaction_threshold: After each reply, a background job checks the estimated size of the unsummarized history. When it is more than this fraction of the context window, older messages are summarized to free space. At 0.75, that happens above 75%. Lower this to summarize sooner; raise it to let the history grow further first.
prune_protect_turns: Tool results and arguments from the most recent N turns are kept up to protected_result_max characters (10,000). In older turns, results are cut to old_result_preview (200) and arguments to old_argument_preview (1,000). Increase this if Iris seems to lose track of recent tool results.
You can override token_budget_ratio via environment variable:
bash
# .env
IRIS_CONTEXT_TOKEN_BUDGET_RATIO=0.80History Cache
Iris caches the stable portion of the conversation history with Anthropic's prompt cache, so a warm thread re-reads most of its context instead of re-billing it on every message.
| Setting | Default | Description |
|---|---|---|
history_cache.enabled | true | Master switch for the history cache breakpoint |
history_cache.ttl | '1h' | TTL for the history breakpoint (keep at or below the system groups' TTL) |
history_cache.min_tokens | 20000 | Skip the breakpoint until the history is at least this large |
Toggle it via environment variable:
bash
# .env
IRIS_HISTORY_CACHE_ENABLED=falseSee Cache Breakpoints for how this interacts with the system-prompt breakpoints and the 4-breakpoint budget.
Filesystem Tool Limits
Filesystem tools are disabled by default. See Filesystem Tools for setup. The limits below cap how much output the tools return per call, which keeps individual responses from consuming a disproportionate share of the context window.
| Setting | Default | Description |
|---|---|---|
filesystem.enabled | false | Enable the filesystem tools (IRIS_FILESYSTEM_ENABLED) |
filesystem.root | storage/app/iris/workspace | Workspace directory the tools are confined to (IRIS_WORKSPACE_ROOT) |
filesystem.blocked_paths | [] | Paths inside the workspace the tools refuse to touch |
filesystem.max_read_bytes | 1048576 | Largest file read_file returns whole, without offset or limit |
filesystem.max_read_lines | 500 | Maximum lines returned per file read |
filesystem.max_read_chars | 30000 | Maximum characters returned per file read |
filesystem.max_grep_matches | 100 | Maximum matches returned per grep search |
When read_file output exceeds a limit, Iris truncates the response and the agent pages through the file with offset and limit. When grep exceeds its cap, Iris truncates the response and saves the full result to disk. The truncation message gives the agent the saved file's path, which read_file and grep accept.
Tool Output Storage
Truncated grep results are saved to disk so agents can read the full result on demand. Each user's files go in their own subdirectory (<storage_path>/<user id>/), and an agent can only read the current user's files. Keep this directory outside filesystem.root. When filesystem.enabled is false, or the user may not use the filesystem tools, nothing is saved.
| Setting | Default | Description |
|---|---|---|
tool_output.storage_path | storage/app/private/tool-output/ | Directory that holds each user's saved outputs |
tool_output.ttl | 86400 | Seconds before saved output files are eligible for cleanup (24 hours) |
Saved files are cleaned up automatically on a daily schedule, and deleting an account removes that user's files. You can also run cleanup manually:
bash
php artisan iris:prune-tool-outputsTruths Settings
Truths are stable, core facts about you that persist across conversations. Unlike memories that are retrieved contextually, Truths represent distilled knowledge earned through behavioral evidence.
| Setting | Default | Description |
|---|---|---|
truths.max_dynamic | 7 | Maximum non-pinned Truths included per conversation |
truths.percentile_threshold | 5 | Top N% of memories by access count are distillation candidates |
truths.min_total_memories | 20 | Minimum memories required before distillation runs |
truths.similarity_threshold | 0.40 | Minimum relevance score for a Truth to be included |
truths.duplicate_threshold | 0.80 | Similarity threshold to detect duplicate Truths |
truths.stale_days | 90 | Days without access before a Truth is considered stale |
truths.crystallization_provider | anthropic | Prism provider for crystallization |
truths.crystallization_model | claude-sonnet-5-5 | Model for refining Truths with new evidence |
truths.promotion_provider | anthropic | Prism provider for promotion evaluation |
truths.promotion_model | claude-sonnet-5-5 | Model for analyzing promotion candidates |
truths.jobs_per_minute | 10 | Rate limit for distillation API calls |
truths.review_limit_per_run | 20 | Flagged Truths reviewed per user each nightly run (uses the crystallization model) |
truths.min_absolute_access_count | 10 | A memory needs at least this many accesses to be a candidate, whatever the percentile works out to |
truths.max_generation | 5 | Truths at this generation are not refined or consolidated further |
truths.auto_resolve_strength_threshold | 15 | Evidence strength at or above which contradicting evidence updates an unprotected Truth automatically. Below it, or for a pinned, user-created, or agent-created Truth, the contradiction goes to the Conflicts page |
truths.evidence_strength.max_access_count | 20 | Cap on the access count of the memory behind the new evidence when scoring its strength |
truths.evidence_strength.recency_bonus | 5 | Points added when the memory was accessed within recency_days |
truths.evidence_strength.recency_days | 7 | Window for the recency bonus |
truths.evidence_strength.generation_multiplier | 2 | Points added per consolidation generation of the memory |
truths.crystallization_timeout | 60 | API timeout for crystallization and Truth review, in seconds |
truths.promotion_timeout | 30 | API timeout for promotion evaluation, in seconds |
Pinned vs Dynamic Truths: You can pin any Truth to ensure it's always included, regardless of relevance scoring. The max_dynamic setting only limits non-pinned Truths - pinned Truths are unlimited.
Run distillation manually:
bash
php artisan iris:distill-truths --queue # Process all users
php artisan iris:distill-truths --user=1 --queue # Process specific user
php artisan iris:distill-truths --dry-run # Preview without changesReport Truths whose source memories are gone or that describe one-off dated events, and optionally queue them for the nightly review:
bash
php artisan iris:audit-truths # Report only
php artisan iris:audit-truths --flag # Flag them for reviewMemory Settings
Memory settings control how Iris recalls memories during conversations, and how the store_memory tool checks for duplicates.
| Setting | Default | Description |
|---|---|---|
memory.store_duplicate_threshold | 0.85 | store_memory holds back a write when an existing memory is at least this similar, and shows the agent the matches |
memory.store_related_threshold | 0.75 | After a write, store_memory lists up to 3 existing memories at least this similar so the agent can fix outdated ones |
memory.max_results | 7 | Maximum memories recalled per turn |
memory.similarity_threshold | 0.38 | Minimum similarity for a memory to be recalled |
memory.context_turns | 20 | Conversation turns used to plan recall queries |
memory.max_queries | 4 | Maximum recall topics per turn, one query each |
memory.max_key_terms | 5 | Maximum literal key terms kept from the query plan |
memory.recall_provider | anthropic | Prism provider for recall query planning |
memory.recall_model | claude-sonnet-5-5 | Model for planning recall queries |
memory.recall_timeout | 20 | Timeout for query planning, in seconds. On timeout, recall searches with the raw message instead |
memory.candidates_per_query | 10 | Nearest memories fetched per topic before scoring |
memory.trace_enabled | true | Save a recall trace for each user turn to the recall_traces table |
memory.trace_retention_days | 90 | Age at which the daily model:prune run deletes recall traces |
memory.carry_forward.turns | 3 | Earlier user messages in the thread whose recalled memories and truths stay in context; 0 turns it off (IRIS_RECALL_CARRY_FORWARD_TURNS) |
memory.carry_forward.max_memories | 10 | Most memories carried forward per message, newest messages first |
memory.carry_forward.max_truths | 5 | Most truths carried forward per message |
How memory retrieval works: For each message, Iris plans one search query per distinct topic, then fetches the closest memories for each. Each topic first gets its best-scoring memory among those at least selection.topic_floor similar to it. The remaining slots go to the highest-scoring memories above similarity_threshold, and recall returns fewer than max_results when nothing else qualifies. See Memory System for the full recall pipeline.
Recall runs before every reply, which is why recall_timeout is short.
Selection
These settings live under memory.selection and decide which candidates fill the max_results slots:
| Setting | Default | What it means |
|---|---|---|
topic_floor | 0.45 | Minimum similarity to a topic for that topic's guaranteed slot, so an off-target query doesn't claim a weak match |
redundancy_threshold | 0.85 | A candidate this similar to an already chosen memory is skipped |
Scoring Weights
Memories are ranked by similarity plus recency:
(semantic × 0.60) + (recency × 0.25)All scoring settings live under memory.scoring:
| Setting | Default | What it means |
|---|---|---|
semantic | 0.60 | Best cosine similarity across the recall queries |
recency | 0.25 | How recently the memory was created, decaying linearly to zero over recency_window_days |
recency_window_days | 90 | Age at which the recency score reaches zero |
Only the ratio between the two weights affects ordering.
TIP
If memories seem stale, increase the recency weight. If relevant memories aren't surfacing, check the recall_traces row for that turn before lowering similarity_threshold. The trace shows the planned topics, every candidate, and which ones were selected and why.
Extraction Settings
Extraction controls how memories are automatically created from conversations.
| Setting | Default | Description |
|---|---|---|
extraction.threshold | 10 | New messages needed before an extraction run |
extraction.max_memories | 6 | Maximum memories per run |
extraction.batch_size | 60 | Most unprocessed messages one run extracts from. Larger backlogs are handled by follow-up runs, oldest first |
extraction.context_messages | 20 | Already-processed messages shown before the new ones, for context only |
extraction.in_flight_minutes | 15 | A reply still pending or streaming within this window holds the batch boundary just before it |
extraction.neighbor_limit | 5 | Existing memories compared against each new candidate |
extraction.neighbor_similarity | 0.70 | Minimum similarity for those neighbors. A candidate with none is added without a reconciliation call |
extraction.timeout | 120 | API timeout per LLM call, in seconds |
extraction.provider | anthropic | Prism provider for extraction and reconciliation |
extraction.model | claude-sonnet-5-5 | Model for extraction and reconciliation |
The quality vs quantity tradeoff: A lower max_memories forces the extraction model to be selective, producing higher-quality memories. Increasing it may capture more information but risks storing trivial details.
See Memory Extraction for how batches and reconciliation work.
Summarization Settings
Summarization compresses older messages to preserve context without consuming too many tokens.
| Setting | Default | Description |
|---|---|---|
summarization.threshold | 40 | Unsummarized message count that triggers summarization (secondary guard) |
summarization.trim_target_ratio | 0.75 | Trim the oldest turns until the remaining history reaches this fraction of the budget |
summarization.protect_recent | 10 | Most-recent messages never pulled into a summary |
summarization.timeout | 120 | API timeout in seconds |
summarization.provider | anthropic | Prism provider for summary generation |
summarization.model | claude-sonnet-5-5 | Model for generating summaries |
How summarization triggers: The primary trigger is history size — when the estimated unsummarized history reaches context.compaction_threshold of the window, Iris summarizes older turns to free space. The threshold setting is a secondary message-count guard: if unsummarized messages exceed it, summarization also runs. Each trim takes the oldest turns down to trim_target_ratio of the budget while leaving the most recent protect_recent messages intact.
WARNING
Very aggressive compaction (low compaction_threshold) may lose conversational nuance. The defaults balance context preservation with token efficiency.
Consolidation Settings
Consolidation merges memories that state the same fact into one.
| Setting | Default | Description |
|---|---|---|
consolidation.similarity_threshold | 0.80 | Minimum cosine similarity to cluster |
consolidation.days_lookback | 3 | Days to look back for daily runs |
consolidation.max_memories_per_run | 100 | Cap on recent memories per daily run, and separately on older neighbors pulled in |
consolidation.neighbors_per_memory | 5 | Older memories pulled in per recent memory on daily runs, so new duplicates of old memories are caught |
consolidation.max_content_chars | 900 | Absolute cap on merged memory length. Longer merges are discarded |
consolidation.max_content_growth | 1.5 | Merged memory may be at most this multiple of the longest source |
consolidation.min_content_chars | 200 | Floor for the growth cap, so very short memories can still merge |
consolidation.max_cluster_size | 5 | Max memories per cluster |
consolidation.min_cluster_size | 2 | Min memories to form a cluster |
consolidation.max_generation | 5 | Max consolidation generations |
consolidation.timeout | 120 | API timeout in seconds |
consolidation.provider | anthropic | Prism provider for consolidation decisions |
consolidation.model | claude-sonnet-5-5 | Model for merge decisions |
consolidation.jobs_per_minute | 10 | Rate limit for API calls |
Understanding generations: Original memories are Generation 0. When merged, the result is Generation 1. A merged memory can absorb later duplicates of the same fact up to Generation 5. Merges only combine memories that state the same fact, and each merge is capped in length. See Memory Consolidation for details.
Run consolidation manually:
bash
php artisan iris:consolidate-memories
php artisan iris:consolidate-memories --dry-run # Preview without changesTruth Consolidation Settings
Truth consolidation merges semantically similar Truths to reduce redundancy. Unlike memory consolidation which runs daily, truth consolidation runs weekly since Truths accumulate more slowly.
| Setting | Default | Description |
|---|---|---|
truth_consolidation.similarity_threshold | 0.75 | Minimum cosine similarity to cluster |
truth_consolidation.max_cluster_size | 5 | Max Truths per cluster |
truth_consolidation.min_cluster_size | 2 | Min Truths to form a cluster |
truth_consolidation.timeout | 120 | API timeout in seconds |
truth_consolidation.provider | anthropic | Prism provider for truth consolidation |
truth_consolidation.model | claude-sonnet-5-5 | Model for merge decisions |
truth_consolidation.jobs_per_minute | 10 | Rate limit for API calls |
Protection model: Only Promoted Truths are eligible for consolidation. User-created, agent-created, and pinned Truths are protected. Truths at the maximum generation are also excluded.
The threshold (0.75) is lower than memory consolidation (0.80) because Truths are already distilled facts - semantic overlap is more likely to be true redundancy.
Run consolidation manually:
bash
php artisan iris:consolidate-truths
php artisan iris:consolidate-truths --dry-run # Preview without changesSee Truth Consolidation for details on how it works.
Calendar Settings
| Setting | Default | Description |
|---|---|---|
calendar.cache_ttl | 15 | Cache duration in minutes |
calendar.stale_ttl | 60 | Minutes a cached copy can still be served while a refresh runs in the background |
calendar.event_horizon | 7 | Days ahead to include in context |
calendar.event_lookback | 3 | Past days of events to include in context; 0 leaves them out |
Why caching matters: Calendar data is fetched from Google's API and cached to avoid repeated requests. Within cache_ttl the cached copy is served as is. Between cache_ttl and stale_ttl it is still served while a background refresh runs, and after stale_ttl the next request waits for a fresh fetch. The event_horizon controls how far ahead Iris looks: a larger value gives more scheduling context but increases the data in each request.
Weather Settings
NOTE
Weather is disabled by default. Enable it by setting IRIS_WEATHER_ENABLED=true and TOMORROW_IO_API_KEY in your .env.
| Setting | Default | Description |
|---|---|---|
weather.enabled | false | Enable the weather integration (IRIS_WEATHER_ENABLED) |
weather.cache_ttl | 30 | Minutes the forecast in context is served from cache |
weather.stale_ttl | 60 | Minutes a cached forecast in context can be served while a refresh runs |
weather.tool_cache_ttl | 5 | Same as cache_ttl, for forecasts the weather tool fetches on request |
weather.tool_stale_ttl | 15 | Same as stale_ttl, for those forecasts |
weather.http_timeout | 10 | Seconds to wait for the tomorrow.io response |
weather.http_connect_timeout | 5 | Seconds to wait for the connection |
The API key is read from config/services.php. See Weather for setup and per-user settings.
Embeddings Settings
| Setting | Default | Description |
|---|---|---|
embeddings.provider | openai | Prism provider for embeddings |
embeddings.model | text-embedding-3-small | Embedding model |
embeddings.provider_options | [] | Provider-specific options passed to Prism |
Embeddings power semantic search. The default text-embedding-3-small model offers a good balance of quality and cost. Changing the model or provider affects how memories are stored and retrieved.
The provider_options array lets you pass provider-specific configuration. For example, when using Ollama for embeddings you'll want to set dimensions to match the default vector size:
php
'embeddings' => [
'provider' => 'ollama',
'model' => 'your-embedding-model',
'provider_options' => [
'dimensions' => 1536,
],
],Text-to-Speech Settings
NOTE
Text-to-speech is disabled by default. Enable it by setting IRIS_TTS_ENABLED=true and ELEVENLABS_API_KEY in your .env.
| Setting | Default | Description |
|---|---|---|
tts.enabled | false | Enable audio playback (also requires an API key) |
tts.provider | elevenlabs | Prism provider for text-to-speech |
tts.model | eleven_v4_turbo | TTS model, set via IRIS_TTS_MODEL |
tts.voice | (configured) | Voice ID, set via IRIS_TTS_VOICE |
tts.voice_settings | all null | Optional stability, similarity, style, and speaker boost overrides |
tts.disk | local | Where generated audio is saved, set via IRIS_TTS_DISK |
tts.queue | audio | Queue for generation jobs, set via IRIS_TTS_QUEUE. If you change it, add the queue to a supervisor in config/horizon.php |
tts.request_timeout | 45 | Seconds to wait for one ElevenLabs request |
tts.segment_character_limits | [250, 1000, 2500] | Maximum characters per audio part, by position |
When enabled, assistant messages show a speaker icon. Audio is generated once, saved, and replayed for free. Changing the model, voice, or voice settings regenerates saved audio the next time each message is played. See Text-to-Speech for setup and model choice.
Telegram Notification Settings
NOTE
Telegram notifications are disabled by default. Enable them by setting TELEGRAM_ENABLED=true in your .env and configuring a bot token.
| Setting | Environment Variable | Description |
|---|---|---|
connectors.telegram.enabled | TELEGRAM_ENABLED | Enable Telegram integration |
connectors.telegram.token | TELEGRAM_BOT_TOKEN | Bot token from BotFather |
connectors.telegram.bot_username | TELEGRAM_BOT_USERNAME | Bot username for generating connect links |
telegraph.webhook.domain | TELEGRAM_WEBHOOK_DOMAIN | Domain Telegram sends webhook calls to. Defaults to APP_URL when empty |
telegraph.webhook.secret | TELEGRAPH_WEBHOOK_SECRET | Secret Telegram sends in the X-Telegram-Bot-Api-Secret-Token header so Iris can verify a webhook call is genuine |
The first three settings live in config/connectors.php and the webhook settings in config/telegraph.php. When enabled, proactive messages are pushed to users who've linked their Telegram account and toggled notifications on. See Telegram Notifications for the full setup guide.
Push Notification Settings
NOTE
Push notifications are off until you generate VAPID keys with php artisan webpush:vapid. They also need Iris served over HTTPS.
| Setting | Environment Variable | Description |
|---|---|---|
webpush.vapid.public_key | VAPID_PUBLIC_KEY | Public key browsers subscribe with |
webpush.vapid.private_key | VAPID_PRIVATE_KEY | Private key that signs each push |
webpush.vapid.subject | VAPID_SUBJECT | Contact for push services. Defaults to APP_URL |
These live in config/webpush.php. Each user turns push on per device in Settings > Notifications. See Push Notifications for the full setup guide.
Thread Briefs Settings
Thread Briefs give Iris cross-thread awareness by generating lightweight digests of each thread's current state.
| Setting | Default | Description |
|---|---|---|
briefs.enabled | true | Master toggle for all brief-related behavior. With it off, no briefs are generated and no stored brief is shown in chat, the heartbeat or memory extraction |
briefs.threshold | 2 | Minimum assistant responses before first brief |
briefs.max_threads | 5 | Maximum threads shown in cross-thread context |
briefs.max_age_days | 7 | Threads quiet for longer than this no longer appear in cross-thread context (IRIS_BRIEFS_MAX_AGE_DAYS) |
briefs.idle_minutes | 10 | How long a thread must be quiet after a reply before its brief is generated (IRIS_BRIEFS_IDLE_MINUTES) |
briefs.recent_messages | 4 | Newest messages written after a thread's brief that are shown under it in cross-thread context; 0 turns the tail off (IRIS_BRIEFS_RECENT_MESSAGES) |
briefs.recent_message_chars | 300 | Characters kept from each of those messages (IRIS_BRIEFS_RECENT_MESSAGE_CHARS) |
briefs.provider | anthropic | Prism provider for brief generation |
briefs.model | claude-haiku-4-5 | Model for generating briefs |
briefs.timeout | 15 | Timeout in seconds for generation |
How it works: When a thread has been quiet for idle_minutes after a reply, a background job generates a 3-6 sentence digest covering the thread's topic, key decisions, current status, and emotional context. A burst of replies produces one brief. Messages written after a brief are shown under it in other threads (up to recent_messages), so a brief that is a few messages behind is never stale to the reader. If you reply in another thread and a thread's backlog has grown past what that tail can show, Iris refreshes its brief straight away. Briefs are injected into other threads' per-turn context (only threads active within max_age_days) and used by the heartbeat for context. The master enabled toggle controls everything — generation, cross-thread injection, and heartbeat usage.
Disable via environment variable:
bash
# .env
IRIS_BRIEFS_ENABLED=falseCustomizing Briefs
php
// config/iris-custom.php
return [
'briefs' => [
'idle_minutes' => 20, // Wait for a longer pause before generating
'max_age_days' => 3, // Only show threads from the last three days
'max_threads' => 3, // Fewer threads in cross-thread context
'recent_messages' => 2, // Show fewer newer-than-brief messages
],
];Images Settings
Images you attach stay visible to the model on later turns while their message is in the raw history. Each request re-sends the replayed images, so the images.replay caps keep that bounded. See Image Support.
| Setting | Default | Description |
|---|---|---|
images.replay.max_count | 4 | Images re-sent on each request, counting the newest message's images first and filling any remaining slots with older ones. The newest message always sends all of its images, even past this cap |
images.replay.max_bytes | 10000000 | Total stored size of those images (base64 adds about a third on the wire) |
images.replay.max_image_bytes | 3750000 | Larger images from earlier messages are never replayed, which keeps each one inside the provider's per-image limit once encoded |
images.replay.tokens_per_image | 4800 | Token estimate per replayed image when budgeting history |
images.descriptions.enabled | true | Write a one-line description of each uploaded image (IRIS_IMAGE_DESCRIPTIONS_ENABLED) |
images.descriptions.provider | anthropic | Prism provider for descriptions |
images.descriptions.model | claude-haiku-4-5 | Vision model for descriptions |
images.descriptions.timeout | 30 | Timeout in seconds |
images.descriptions.max_tokens | 200 | Output cap for the description |
An image over the caps, or whose file can't be read, is sent as [Image: <description>], or [Image] when it has no description yet.
Cache behavior: the replayed set only changes when a new image arrives or an old one leaves the raw history, so the cached history prefix stays stable between those events. When a new image pushes an older one over max_count, the prefix is rewritten once from the older message on. Once you're past the cap, sending an image on nearly every turn means a rewrite on nearly every turn.
Each description is one small vision call per uploaded image. To describe images that were uploaded before descriptions existed:
bash
php artisan iris:backfill-image-descriptions --dry-run # count only
php artisan iris:backfill-image-descriptions # queue the jobs
php artisan iris:backfill-image-descriptions --user=42 # one userThe command queues one job per image file. Forked threads share files with the thread they came from, so a forked copy doesn't cost a second call.
Proactive Messages Settings
| Setting | Default | Description |
|---|---|---|
heartbeat.provider | anthropic | Prism provider for heartbeat decisions |
heartbeat.model | claude-sonnet-5-5 | Model for heartbeat decisions |
heartbeat.max_steps | 30 | Maximum tool iterations when crafting messages |
heartbeat.request_timeout | 120 | HTTP timeout for each API request, in seconds |
heartbeat.context_max_threads | 3 | Most recently active threads to include in heartbeat context |
heartbeat.interval_minutes | 30 | Minutes between heartbeats. The scheduler turns it into */N * * * *, so it must divide 60. No environment variable; set it in config/iris-custom.php |
heartbeat.cache_ttl | '1h' | TTL for the decision request's cache breakpoints, written only when heartbeats are at most half of it apart |
heartbeat.followup_max_lateness_minutes | 1440 | A scheduled follow-up more than this many minutes overdue expires instead of firing late (IRIS_FOLLOWUP_MAX_LATENESS_MINUTES) |
heartbeat.max_runs_per_interval | 8 | Heartbeat runs one user can start in each interval_minutes window, counting scheduled ticks, follow-up deliveries, manual runs and retries. Runs over the limit wait for the next window |
heartbeat.log_retention_days | 90 | Age at which the daily model:prune run deletes heartbeat logs, along with the prompt tail each check stored |
heartbeat.prompts | (see below) | Prompt stack for heartbeat system messages. Each cached group's label names it on the Logs page |
How it works: Iris runs a heartbeat every interval_minutes (30 by default), gathering context (thread briefs and latest summaries from active threads, thread metadata, calendar, weather, memories) and deciding whether to proactively reach out. The heartbeat uses a dedicated prompt stack that's lighter than the full conversation prompt stack. Users configure guidance (soft preferences) and boundaries (hard constraints like quiet hours) through the UI.
See Proactive Messages for detailed usage and configuration.
Temporal Settings
| Setting | Default | Description |
|---|---|---|
temporal.timezone | America/New_York | Default timezone for date/time context |
temporal.reference_days_before | 3 | Past days listed in the current time prompt's date reference |
temporal.reference_days_after | 14 | Upcoming days listed in the current time prompt's date reference |
Iris adds the current date and time, in this timezone, to the per-turn context. It also adds a short date reference that lists each day's weekday and its position relative to today ("yesterday", "in 3 days"), so the model looks up weekdays and doesn't have to count them. The timezone is the system-wide default for all users.
Per-User Timezone
Each user can override the default timezone in Settings > Profile. When a user sets their timezone, it's used everywhere: system prompts, heartbeat scheduling, quiet hours, follow-up validation, and the frontend.
The fallback chain is:
- User's timezone (if set in their profile)
- Config default (
temporal.timezone)
If a user leaves timezone blank, the config default applies automatically. This makes the config value a sensible default for new users while letting individuals customize.
Shell Settings
WARNING
Shell command execution is disabled by default. Enable only on trusted deployments. Only administrators can use it, in every environment (see Access Settings).
| Setting | Default | Description |
|---|---|---|
shell.enabled | false | Enable shell command execution |
shell.default_timeout | 30 | Default timeout in seconds |
shell.max_timeout | 300 | Maximum allowed timeout (5 minutes) |
shell.max_output_length | 50000 | Maximum output size in bytes |
shell.default_working_directory | null | Default directory for commands (IRIS_WORKSPACE_ROOT). Falls back to the home directory of the user running Iris |
shell.blocked_executables | ['sudo', 'su', 'doas', 'pkexec'] | Blocked command names |
shell.blocked_patterns | [...] | Regex patterns to block |
shell.inherit_env_vars | ['PATH', 'HOME', 'USER', 'SHELL', 'TERM', 'LANG', 'LC_ALL'] | The only environment variables a command receives |
Enable via environment variable:
bash
# .env
IRIS_SHELL_ENABLED=trueSecurity layers: Privilege escalation commands are blocked (sudo, su, doas, pkexec). Dangerous patterns like rm -rf / and direct disk writes are detected and blocked. A command receives only the variables in inherit_env_vars; every other variable in Iris's own environment, including API keys and database credentials, is removed. This is not a sandbox. Commands run as the same operating system user as Iris, so they can still read that user's files, including .env.
See Shell Commands for detailed usage and security information.
Broadcasting Settings
Iris uses Laravel Reverb for real-time streaming. Configure via environment variables:
The Default column shows the value .env.example sets. Without it, Laravel falls back to its own defaults, such as a null broadcast driver and port 443.
| Setting | Default | Description |
|---|---|---|
BROADCAST_CONNECTION | reverb | Broadcasting driver |
REVERB_APP_ID | iris-local | Application identifier |
REVERB_APP_KEY | iris-local-key | Client authentication key |
REVERB_APP_SECRET | iris-local-secret | Server-side secret |
REVERB_HOST | localhost | Hostname browsers connect to |
REVERB_PORT | 8080 | Port browsers connect to |
REVERB_SCHEME | http | Protocol (http or https for production) |
REVERB_SERVER_HOST | 0.0.0.0 | Address the reverb:start process listens on |
REVERB_SERVER_PORT | 8080 | Port the reverb:start process listens on |
The VITE_REVERB_* variables in .env.example copy the host, port, scheme, and key into the frontend build, so rebuild the frontend after you change them.
Event Storage
Stream events are temporarily stored in Redis for connection recovery. Events remain available for replay, so clients can catch up after brief disconnections.
Sub-Agent Settings
WARNING
Task delegation is disabled by default. The sub-agent gets shell commands only when they're enabled and the user who delegated the task may use them (see Access Settings).
| Setting | Default | Description |
|---|---|---|
subagent.enabled | false | Enable task delegation |
subagent.provider | anthropic | Prism provider for the sub-agent |
subagent.model | claude-sonnet-5-5 | Model for the sub-agent |
subagent.max_steps | 60 | Maximum tool iterations per task |
subagent.default_working_directory | null | Default directory for tasks |
subagent.request_timeout | 120 | HTTP timeout per API request, capped at the time the task has left |
subagent.default_timeout | 300 | Task timeout when Iris doesn't ask for one (5 minutes) |
subagent.min_timeout | 60 | Shortest timeout Iris can ask for; shorter requests are raised to this |
subagent.max_timeout | 600 | Longest timeout Iris can ask for (10 minutes); longer requests are lowered to this |
subagent.abandoned_grace_seconds | 300 | How far past its timeout a running task can go before the sweep assumes the daemon died and times it out |
Enable via environment variables:
bash
# .env
IRIS_SUBAGENT_ENABLED=true
IRIS_SHELL_ENABLED=true
IRIS_SUBAGENT_WORKING_DIR=/home/user/projects # Optional default directoryHow it works: Task delegation spawns an autonomous sub-agent using Prism's agent loop. The sub-agent has the delegating user's tools (shell and filesystem only for administrators) and the web tools, and works through multi-step tasks on its own before returning results. Tasks are processed by the iris:agent daemon — see Task Delegation for setup.
Constraints: One active task per user to prevent resource exhaustion. Inherits all shell security settings. The daemon stops a task when its timeout runs out and posts a timeout message to the thread.
See Task Delegation for detailed usage information.
Token Usage Tracking
Iris tracks API token consumption across all operations. You can monitor usage by source type:
| Source | What it tracks |
|---|---|
chat | Main conversation tokens |
summarization | Summary generation tokens |
extraction | Memory extraction tokens |
recall | Recall query planning tokens |
consolidation | Memory and Truth consolidation tokens |
promotion | Truth promotion analysis tokens |
crystallization | Truth crystallization tokens |
truth_review | Review of Truths flagged after their source memories changed |
heartbeat | Proactive message decisions, including prompt cache reads and writes |
brief_generation | Thread brief generation tokens |
embedding | Embedding API calls |
image_description | One-line image descriptions |
Token data is stored in the token_usages table and can be queried for cost analysis or monitoring dashboards.
Common Configuration Scenarios
Lower API Costs
php
// config/iris-custom.php
return [
'extraction' => [
'threshold' => 20, // Extract less frequently
],
'summarization' => [
'threshold' => 60, // Summarize less often
],
'truths' => [
'max_dynamic' => 3, // Fewer dynamic Truths per conversation
],
'memory' => [
'max_results' => 5, // Fewer search results
],
];More Responsive Memory
php
// config/iris-custom.php
return [
'extraction' => [
'threshold' => 5, // Extract more frequently
],
'memory' => [
'max_results' => 10, // Recall up to 10 memories per turn instead of 7
],
];CAUTION
Avoid lowering similarity_threshold far below its default. Slots left after each topic gets its guaranteed memory are filled from anything above that threshold, so a low value fills them with weak matches instead of leaving them empty.
Conservative Memory Consolidation
php
// config/iris-custom.php
return [
'consolidation' => [
'similarity_threshold' => 0.90, // Only very similar memories
'max_generation' => 3, // Limit consolidation depth
],
];Conservative Truth Consolidation
php
// config/iris-custom.php
return [
'truth_consolidation' => [
'similarity_threshold' => 0.85, // Only very similar truths
],
];Aggressive Truth Promotion
php
// config/iris-custom.php
return [
'truths' => [
'percentile_threshold' => 20, // Wider candidate pool
'min_total_memories' => 10, // Start promoting sooner
],
];Enable Shell Commands
php
// config/iris-custom.php
return [
'shell' => [
'default_timeout' => 60,
'default_working_directory' => '/home/user/projects',
],
];Then set IRIS_SHELL_ENABLED=true in your .env.
Enable Task Delegation
php
// config/iris-custom.php
return [
'subagent' => [
'max_steps' => 50,
'default_timeout' => 600, // 10 minutes for complex tasks
'default_working_directory' => '/home/user/projects',
],
];Then set both IRIS_SUBAGENT_ENABLED=true and IRIS_SHELL_ENABLED=true in your .env.
Optimize for 200K Models
For models with 200K context windows (Claude Haiku 4.5, and older models such as Claude Opus 4.5 and Sonnet 4.5), keep context lean to avoid hitting limits during long conversations.
php
// config/iris-custom.php
return [
'context' => [
'window' => 200_000,
'token_budget_ratio' => 0.65, // Leave more headroom for system prompts
'compaction_threshold' => 0.70, // Compact earlier to avoid hitting limits
'prune_protect_turns' => 2,
],
'filesystem' => [
'max_read_lines' => 300, // Smaller reads to conserve context
'max_read_chars' => 15000,
'max_grep_matches' => 50,
],
];Maximize Context on 1M Models
For models with 1M context windows (Claude Sonnet 5.5, Opus 5.5, and Haiku 5.5), you can afford much larger history and tool outputs.
php
// config/iris-custom.php
return [
'context' => [
'window' => 1_000_000,
'token_budget_ratio' => 0.80, // Use more of the window for history
'compaction_threshold' => 0.85, // Allow context to fill further before compacting
'prune_protect_turns' => 5, // Protect more recent tool outputs
],
'filesystem' => [
'max_read_lines' => 2000, // Read much larger files in one shot
'max_read_chars' => 100000,
'max_grep_matches' => 500,
],
];Thread Settings
Threads organize conversations into isolated contexts with independent history and summaries.
| Setting | Default | Description |
|---|---|---|
threads.naming_threshold | 4 | Messages before auto-naming triggers |
threads.naming_provider | anthropic | Prism provider for naming |
threads.naming_model | claude-haiku-4-5 | Model for generating thread names |
threads.naming_timeout | 15 | Timeout in seconds for the naming job |
How auto-naming works: After a new thread accumulates enough messages (default: 4), a background job generates a short, descriptive name. A fast, inexpensive model is used to keep costs minimal. If a user manually renames a thread, auto-naming won't overwrite their choice.
Customizing Thread Naming
php
// config/iris-custom.php
return [
'threads' => [
'naming_threshold' => 6, // Wait for more conversation context
],
];Skills Settings
| Setting | Default | Description |
|---|---|---|
skills.enabled | true | Enable agent skills (IRIS_SKILLS_ENABLED) |
skills.directory | .agents/skills | Directory to load skills from. Defaults to .agents/skills in the application root (IRIS_SKILLS_DIR) |
Skills extend Iris with specialized knowledge and workflows. You can pin skills to threads to inject their full content into the system prompt for every message in that thread. Pinned skills are configured per-thread through the thread settings modal. See Agent Skills for details.