forked from librefang/librefang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrefang.toml.example
More file actions
77 lines (66 loc) · 2.61 KB
/
librefang.toml.example
File metadata and controls
77 lines (66 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# LibreFang Agent OS — Example Configuration
# Copy to ~/.librefang/config.toml and customize.
# API server settings
# api_key = "" # Set to enable Bearer auth (recommended)
# api_listen = "127.0.0.1:4545" # HTTP API bind address (use 0.0.0.0 for public)
[default_model]
provider = "anthropic" # "anthropic", "gemini", "openai", "groq", "z.ai", "kimi2", "ollama", etc.
model = "claude-sonnet-4-20250514" # Model identifier
api_key_env = "ANTHROPIC_API_KEY" # Environment variable holding API key
# base_url = "https://api.anthropic.com" # Optional: override API endpoint
[memory]
decay_rate = 0.05 # Memory confidence decay rate
# sqlite_path = "~/.librefang/data/librefang.db" # Optional: custom DB path
[network]
listen_addr = "127.0.0.1:4545" # OFP listen address
# shared_secret = "" # Required for P2P authentication
# Session compaction (LLM-based context management)
# [compaction]
# threshold = 80 # Compact when messages exceed this count
# keep_recent = 20 # Keep this many recent messages after compaction
# max_summary_tokens = 1024 # Max tokens for LLM summary
# Usage tracking display
# usage_footer = "Full" # "Off", "Tokens", "Cost", or "Full"
# Prompt caching — reduces LLM costs by caching system prompts (default: true)
# prompt_caching = true # Anthropic cache_control + OpenAI auto-cache
# Channel adapters (configure tokens via environment variables)
# [telegram]
# bot_token_env = "TELEGRAM_BOT_TOKEN"
# allowed_users = [] # Empty = allow all
# [discord]
# bot_token_env = "DISCORD_BOT_TOKEN"
# guild_ids = [] # Empty = all guilds
# [slack]
# bot_token_env = "SLACK_BOT_TOKEN"
# app_token_env = "SLACK_APP_TOKEN"
# MCP server connections
# [[mcp_servers]]
# name = "filesystem"
# timeout_secs = 30
# [mcp_servers.transport]
# type = "stdio"
# command = "npx"
# args = ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
#
# [[mcp_servers]]
# name = "remote-tools"
# timeout_secs = 60
# [mcp_servers.transport]
# type = "sse"
# url = "https://mcp.example.com/events"
#
# [[mcp_servers]]
# name = "internal-http"
# timeout_secs = 30
# [mcp_servers.transport]
# type = "http_compat"
# base_url = "http://127.0.0.1:8080"
# [[mcp_servers.transport.headers]]
# name = "Authorization"
# value_env = "INTERNAL_HTTP_TOKEN"
# [[mcp_servers.transport.tools]]
# name = "search"
# path = "/search"
# method = "get"
# request_mode = "query"
# response_mode = "json"