Overview
OrcBot uses a hierarchical configuration system that reads settings from multiple sources in priority order:- Environment variables (highest priority)
- Local config (
./orcbot.config.yaml) - Home config (
~/orcbot.config.yaml) - Global config (
~/.orcbot/orcbot.config.yaml)
Configuration File Location
OrcBot searches for configuration files in this order:Environment variables always override configuration file values for API keys and credentials.
Core Settings
Agent Identity
The display name for your agent instance.
Path to the agent’s self-updating identity file containing personality and operating instructions.
LLM Configuration
Primary LLM model to use. Examples:
gpt-4o, gpt-4-turbo, claude-3-5-sonnet-20241022, gemini-2.0-flash-exp.Policy: SAFE - Agent can modify autonomously to optimize for different tasks.Explicit LLM provider selection. Supported values:
openai- OpenAI (GPT-4, GPT-3.5, o1)google- Google Geminibedrock- AWS Bedrockopenrouter- OpenRouter (200+ models)nvidia- NVIDIA NIManthropic- Anthropic Claudeollama- Local Ollama models
Per-provider model preferences. Automatically persists the last model used for each provider.
Fallback models to use when primary provider is unavailable.
Fast model for lightweight operations (e.g.,
gpt-4o-mini, gemini-1.5-flash).Ollama (Local Models)
Enable local Ollama integration for running models locally.
Ollama API endpoint URL.Policy: SAFE - Non-sensitive endpoint configuration.
Task Execution Limits
Maximum reasoning steps per action. Dynamically adjusted based on task complexity.Policy: SAFE - Agent can adjust complexity limits based on task needs.
Maximum user-facing messages per action to prevent spam.Policy: SAFE - Agent can adjust delivery budget for long-running tasks.
Maximum execution time for a single action in minutes.
Maximum time before an action is considered stale and terminated.
Window (in messages) for deduplicating similar user messages.
Memory System
Memory Limits
Number of recent short-term memories to include in context.Policy: SAFE - Agent can adjust to optimize performance (1-100).
Number of episodic summaries to include in context.Policy: SAFE - Agent can adjust for better context (1-20).
Character limit for extended memory context.
Maximum length for individual memory entries (characters).
Memory File Paths
Path to short-term memory storage (JSON).
Path to daily journal file for long-term event logging.
Path to learning file where agent stores research findings.
Path to user profile containing preferences and facts.
Path to world events log (GDELT, USGS earthquake data).
Memory Consolidation
Number of short-term memories before triggering consolidation to episodic.
Batch size for memory consolidation operations.
Soft threshold for flushing memories to disk.
Cooldown period between memory flush operations.
Batch size for scoped interaction consolidation.Policy: SAFE - Non-sensitive memory quality tuning (4-100).
Max minutes before pending interaction batch is consolidated.Policy: SAFE - Non-sensitive memory durability tuning (1-180).
Deduplication window for duplicate inbound memory events.Policy: SAFE - Non-sensitive reliability tuning (1-120).
Thread Context
Number of recent messages to include in thread context.
Number of relevant messages to include from semantic search.
Maximum line length for thread context entries.
Number of other memories to include in thread context.
Context Limits by Type
Character limit for journal entries in context.
Character limit for learning entries in context.
Character limit for user profile data in context.
Scoped user exchange count injected into decisions.Policy: SAFE - Non-sensitive context sizing control (3-30).
Step Compaction
Number of steps before compaction is triggered.
Number of first steps to preserve during compaction.
Number of last steps to preserve during compaction.
Expand compacted middle step history for continuity-heavy tasks.Policy: SAFE - Non-sensitive context shaping behavior.
Maximum number of middle steps to expand on continuity intent.Policy: SAFE - Non-sensitive context sizing control (1-50).
Maximum characters reserved for expanded middle-step context.Policy: SAFE - Non-sensitive context sizing control (400-20000).
Autonomy & Heartbeat
Enable autonomous operation mode where the agent can initiate tasks independently.Policy: APPROVAL - Autonomy mode should be explicitly approved.
Autonomous operation interval in minutes. Uses exponential backoff when unproductive.Policy: APPROVAL - Autonomy settings affect system behavior significantly.
Cooldown period after user interaction before autonomy resumes.
Maximum number of autonomous tasks in the queue.
List of channels where the agent can send proactive messages.
Empty array means silent mode - agent will not send unsolicited messages. Direct responses are always allowed.
Allow autonomy lane to continue running while user lane is busy.Policy: APPROVAL - Parallel autonomy can increase throughput but may compete for resources.
Action Queue
Path to the durable action queue file.
Time-to-live for completed actions in milliseconds (default: 24 hours).
Time-to-live for failed actions in milliseconds (default: 72 hours).
Interval for flushing action queue to disk in milliseconds.
Interval for action queue maintenance (cleanup) in milliseconds.
Command Execution
Timeout for shell command execution in milliseconds (default: 2 minutes).
Number of retries for failed commands.
Working directory for command execution (defaults to current directory).
List of allowed commands. Default includes common development tools:
List of denied commands for security. Includes destructive operations:Policy: LOCKED - Security-critical configuration.
Automatically execute commands without confirmation (use with caution).
File Paths
Root directory for source code operations. Auto-detected from
package.json location.Workspace directory for building and compiling code.
Path to skills documentation file.
Directory for hot-loadable TypeScript plugins.
Directory for custom tool scripts.
Plugins
Whitelist of allowed plugins. Empty means all plugins are allowed.
Blacklist of denied plugins. Takes precedence over allow list.
Interval for checking plugin health and auto-repair.
Decision Pipeline
Skill Routing
Intent-based skill selection rules for better tool matching.Policy: APPROVAL - Routing rules can affect which tools are used.
Tool Loop Protection
Maximum times a tool can be repeated in sequence.
Higher repeat limit for research tools (web_search, browser_navigate).
Maximum number of tool usage loops before intervention.
Autopilot Mode
Suppress clarification requests to keep agent moving autonomously.
Skills allowed to ask questions even in autopilot mode.
Skills explicitly denied from asking questions.
Reasoning & Simulation
Enable enhanced reasoning with deeper analysis.
Send the agent’s internal step-by-step checklist to the user before starting complex tasks.
Maximum number of checklist items to expose.
Skip pre-task simulation for simple/trivial tasks to reduce latency.
Use compact skill descriptions in prompts to reduce token usage.
Progress Feedback
Enable progress feedback messages during long-running tasks.Policy: SAFE - Agent can adjust feedback verbosity.
Send progress update every N steps.
Always send initial “working on it” message.
Use typing indicators instead of sending progress messages (reduces noise).Policy: SAFE - Agent can reduce channel noise while preserving feedback.
User Experience
Conversation session scope:
main- Single global sessionper-peer- Separate session per userper-channel-peer- Separate session per channel-user combination
Prompt new users with onboarding questionnaire.
Send briefing to users who reconnect after inactivity.
Days of inactivity before triggering reconnect briefing.
Maximum completed tasks to include in briefing.
Maximum pending tasks to include in briefing.
Require explicit user request before send_file is allowed.Policy: SAFE - Agent can tune delivery strictness for file attachments.
Storage
Maximum entries in vector memory index.
Size of processed messages cache for deduplication.
Path to token usage summary file.
Path to detailed token usage log.
Server Mode
Enable conservative defaults optimized for server/headless deployments.Applies reduced memory limits and more aggressive cleanup:
- Reduced memory context limits
- Shorter action TTLs
- More frequent maintenance cycles
- Compact skills prompt enabled
Web Gateway
HTTP port for the web gateway.
Host address to bind the gateway server.
API key for authenticating gateway requests.
CORS allowed origins for gateway API.
Image Generation
Image generation provider:
openai- DALL-Egoogle- Imagen
Image generation model name.Policy: SAFE - Non-critical preference setting.
Default image generation size (e.g.,
1024x1024, 512x512).Image generation quality (
low, medium, high).Agentic User
Enable agentic user simulation for testing and validation.
Simulated user response delay in seconds.
Confidence threshold (0-100) for agentic user interventions.
Enable proactive guidance from agentic user.
Steps before proactive guidance is triggered.
Interval for checking agentic user status in seconds.
Maximum interventions per task from agentic user.
Notify real user about agentic user interventions.
World Events
Data sources for world events tracking:
gdelt- GDELT Project (global events)usgs- USGS earthquake data
Interval for refreshing world events data.
Lookback window for fetching historical events.
Maximum number of event records to store.
Batch interval for event aggregation.
Store world events to memory.
Include world events in autonomy heartbeat.
GDELT query filter.
Globe visualization renderer:
ascii- ASCII artexternal- External commandmap- Simple mapmapscii- MapSCII terminal viewer
Command for external globe renderer.
Arguments for globe renderer command.
Guidance & Guardrails
Completion guidance strictness:
strict- Enforce all delivery rules strictlybalanced- Moderate enforcementfluid- Flexible completion criteria
Regular expressions for detecting acknowledgement-only messages.
Regular expressions for detecting low-value status updates.
Keywords for detecting clarification questions.
Stop words to ignore when analyzing questions.
Similarity threshold for detecting repeated questions.
Maximum word count for short replies.
Maximum character count for short replies.
Time Signals
Seconds without message before triggering high-risk time signal.
Silent steps before medium-risk time signal.
Seconds since last delivery before medium-risk time signal.
Session Anchoring
Enable session anchoring for conversation continuity.
Maximum session anchor hints to include in context.
Task Deduplication
Window for deduplicating similar tasks in milliseconds (default: 1 minute).
Similarity threshold (0-1) for detecting duplicate messages.
Deduplication window for recovery tasks in hours.
Time Capsule
Maximum steps to preserve in time capsule.
Maximum messages to preserve in time capsule.
OrcBot CLI Control
Allow agent to run orcbot CLI commands.
Allowed orcbot CLI commands:
Denied orcbot CLI commands:
Timeout for orcbot CLI commands in milliseconds.
Termination Force (TForce)
Enable Termination Force incident tracking and prevention.
Maximum incidents tracked per action.
Usage Telemetry
Enable anonymous usage telemetry.
Telemetry endpoint URL.
Timeout for telemetry requests in milliseconds.
Authentication token for telemetry.
Pi AI Integration
Enable Pi AI integration for enhanced reasoning.
Identity Links
Map user identities across channels:
Example Configuration
orcbot.config.yaml