2026-02-18 17:03:34 +00:00
|
|
|
// PicoClaw - Ultra-lightweight personal AI agent
|
|
|
|
|
// License: MIT
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2026 PicoClaw contributors
|
|
|
|
|
|
|
|
|
|
package config
|
|
|
|
|
|
2026-03-01 20:41:12 +00:00
|
|
|
import (
|
2026-04-11 16:57:26 +00:00
|
|
|
"encoding/json"
|
2026-03-01 20:41:12 +00:00
|
|
|
"path/filepath"
|
2026-03-11 08:33:01 +00:00
|
|
|
|
|
|
|
|
"github.com/sipeed/picoclaw/pkg"
|
2026-03-01 20:41:12 +00:00
|
|
|
)
|
|
|
|
|
|
2026-02-18 17:03:34 +00:00
|
|
|
// DefaultConfig returns the default configuration for PicoClaw.
|
|
|
|
|
func DefaultConfig() *Config {
|
2026-03-28 17:14:39 +00:00
|
|
|
workspacePath := filepath.Join(GetHome(), pkg.WorkspaceName)
|
2026-03-01 20:41:12 +00:00
|
|
|
|
2026-02-18 17:03:34 +00:00
|
|
|
return &Config{
|
2026-03-11 08:33:01 +00:00
|
|
|
Version: CurrentVersion,
|
2026-04-08 10:15:42 +00:00
|
|
|
// Isolation is opt-in so existing installations keep their current behavior
|
|
|
|
|
// until the user explicitly enables subprocess sandboxing.
|
|
|
|
|
Isolation: IsolationConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
Agents: AgentsConfig{
|
|
|
|
|
Defaults: AgentDefaults{
|
2026-03-04 03:23:01 +00:00
|
|
|
Workspace: workspacePath,
|
|
|
|
|
RestrictToWorkspace: true,
|
|
|
|
|
Provider: "",
|
|
|
|
|
MaxTokens: 32768,
|
|
|
|
|
Temperature: nil, // nil means use provider default
|
|
|
|
|
MaxToolIterations: 50,
|
|
|
|
|
SummarizeMessageThreshold: 20,
|
|
|
|
|
SummarizeTokenPercent: 75,
|
2026-03-15 16:08:16 +00:00
|
|
|
SteeringMode: "one-at-a-time",
|
2026-03-19 10:08:50 +00:00
|
|
|
ToolFeedback: ToolFeedbackConfig{
|
2026-04-24 03:49:41 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
MaxArgsLength: 300,
|
|
|
|
|
SeparateMessages: false,
|
2026-03-19 10:08:50 +00:00
|
|
|
},
|
2026-04-25 16:12:41 +00:00
|
|
|
SplitOnMarker: false,
|
|
|
|
|
MaxLLMRetries: 2,
|
|
|
|
|
LLMRetryBackoffSecs: 2,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
},
|
2026-02-20 05:29:30 +00:00
|
|
|
Session: SessionConfig{
|
2026-04-01 09:19:50 +00:00
|
|
|
Dimensions: []string{"chat"},
|
2026-02-20 05:29:30 +00:00
|
|
|
},
|
2026-05-11 08:13:27 +00:00
|
|
|
Evolution: EvolutionConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
Mode: "observe",
|
|
|
|
|
MinTaskCount: 2,
|
|
|
|
|
MinSuccessRatio: 0.7,
|
|
|
|
|
ColdPathTrigger: "after_turn",
|
|
|
|
|
},
|
2026-04-11 16:57:26 +00:00
|
|
|
Channels: defaultChannels(),
|
2026-03-22 11:21:58 +00:00
|
|
|
Hooks: HooksConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
Defaults: HookDefaultsConfig{
|
|
|
|
|
ObserverTimeoutMS: 500,
|
|
|
|
|
InterceptorTimeoutMS: 5000,
|
|
|
|
|
ApprovalTimeoutMS: 60000,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
2026-03-21 17:55:00 +00:00
|
|
|
ModelList: []*ModelConfig{
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
// ============================================
|
|
|
|
|
// Add your API key to the model you want to use
|
|
|
|
|
// ============================================
|
|
|
|
|
|
|
|
|
|
// Zhipu AI (智谱) - https://open.bigmodel.cn/usercenter/apikeys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "glm-4.7",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "zhipu",
|
|
|
|
|
Model: "glm-4.7",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://open.bigmodel.cn/api/paas/v4",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// OpenAI - https://platform.openai.com/api-keys
|
|
|
|
|
{
|
2026-03-12 08:10:29 +00:00
|
|
|
ModelName: "gpt-5.4",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "openai",
|
|
|
|
|
Model: "gpt-5.4",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.openai.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Anthropic Claude - https://console.anthropic.com/settings/keys
|
|
|
|
|
{
|
2026-02-20 04:15:04 +00:00
|
|
|
ModelName: "claude-sonnet-4.6",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "anthropic",
|
2026-06-07 07:34:59 +00:00
|
|
|
Model: "claude-sonnet-4-6",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.anthropic.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// DeepSeek - https://platform.deepseek.com/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "deepseek-chat",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "deepseek",
|
|
|
|
|
Model: "deepseek-chat",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.deepseek.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-04-07 13:19:06 +00:00
|
|
|
// Venice AI - https://venice.ai
|
|
|
|
|
{
|
|
|
|
|
ModelName: "venice-uncensored",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "venice",
|
|
|
|
|
Model: "venice-uncensored",
|
2026-04-07 13:19:06 +00:00
|
|
|
APIBase: "https://api.venice.ai/api/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-05-21 12:31:44 +00:00
|
|
|
// NEAR AI Cloud TEE inference - https://near.ai
|
|
|
|
|
{
|
|
|
|
|
ModelName: "nearai-glm",
|
|
|
|
|
Provider: "nearai",
|
|
|
|
|
Model: "zai-org/GLM-5.1-FP8",
|
|
|
|
|
APIBase: "https://cloud-api.near.ai/v1",
|
|
|
|
|
},
|
|
|
|
|
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
// Google Gemini - https://ai.google.dev/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "gemini-2.0-flash",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "gemini",
|
|
|
|
|
Model: "gemini-2.0-flash-exp",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://generativelanguage.googleapis.com/v1beta",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Qwen (通义千问) - https://dashscope.console.aliyun.com/apiKey
|
|
|
|
|
{
|
|
|
|
|
ModelName: "qwen-plus",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "qwen",
|
|
|
|
|
Model: "qwen-plus",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Moonshot (月之暗面) - https://platform.moonshot.cn/console/api-keys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "moonshot-v1-8k",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "moonshot",
|
|
|
|
|
Model: "moonshot-v1-8k",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.moonshot.cn/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Groq - https://console.groq.com/keys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "llama-3.3-70b",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "groq",
|
|
|
|
|
Model: "llama-3.3-70b-versatile",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.groq.com/openai/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// OpenRouter (100+ models) - https://openrouter.ai/keys
|
2026-02-20 03:34:52 +00:00
|
|
|
{
|
|
|
|
|
ModelName: "openrouter-auto",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "openrouter",
|
|
|
|
|
Model: "auto",
|
2026-02-20 03:34:52 +00:00
|
|
|
APIBase: "https://openrouter.ai/api/v1",
|
|
|
|
|
},
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
{
|
2026-03-12 08:10:29 +00:00
|
|
|
ModelName: "openrouter-gpt-5.4",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "openrouter",
|
|
|
|
|
Model: "openai/gpt-5.4",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://openrouter.ai/api/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// NVIDIA - https://build.nvidia.com/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "nemotron-4-340b",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "nvidia",
|
|
|
|
|
Model: "nemotron-4-340b-instruct",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://integrate.api.nvidia.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Cerebras - https://inference.cerebras.ai/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "cerebras-llama-3.3-70b",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "cerebras",
|
|
|
|
|
Model: "llama-3.3-70b",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.cerebras.ai/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-04 17:19:03 +00:00
|
|
|
// Vivgrid - https://vivgrid.com
|
|
|
|
|
{
|
|
|
|
|
ModelName: "vivgrid-auto",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "vivgrid",
|
|
|
|
|
Model: "auto",
|
2026-03-04 17:19:03 +00:00
|
|
|
APIBase: "https://api.vivgrid.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
// Volcengine (火山引擎) - https://console.volcengine.com/ark
|
2026-03-12 08:10:29 +00:00
|
|
|
{
|
|
|
|
|
ModelName: "ark-code-latest",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "volcengine",
|
|
|
|
|
Model: "ark-code-latest",
|
2026-03-12 08:10:29 +00:00
|
|
|
APIBase: "https://ark.cn-beijing.volces.com/api/v3",
|
|
|
|
|
},
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
{
|
|
|
|
|
ModelName: "doubao-pro",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "volcengine",
|
|
|
|
|
Model: "doubao-pro-32k",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://ark.cn-beijing.volces.com/api/v3",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// ShengsuanYun (神算云)
|
|
|
|
|
{
|
|
|
|
|
ModelName: "deepseek-v3",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "shengsuanyun",
|
|
|
|
|
Model: "deepseek-v3",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.shengsuanyun.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Antigravity (Google Cloud Code Assist) - OAuth only
|
|
|
|
|
{
|
|
|
|
|
ModelName: "gemini-flash",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "antigravity",
|
|
|
|
|
Model: "gemini-3-flash",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
AuthMethod: "oauth",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// GitHub Copilot - https://github.com/settings/tokens
|
|
|
|
|
{
|
2026-03-12 08:10:29 +00:00
|
|
|
ModelName: "copilot-gpt-5.4",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "github-copilot",
|
|
|
|
|
Model: "gpt-5.4",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "http://localhost:4321",
|
|
|
|
|
AuthMethod: "oauth",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Ollama (local) - https://ollama.com
|
|
|
|
|
{
|
|
|
|
|
ModelName: "llama3",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "ollama",
|
|
|
|
|
Model: "llama3",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "http://localhost:11434/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-02-20 15:31:35 +00:00
|
|
|
// Mistral AI - https://console.mistral.ai/api-keys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "mistral-small",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "mistral",
|
|
|
|
|
Model: "mistral-small-latest",
|
2026-02-20 15:31:35 +00:00
|
|
|
APIBase: "https://api.mistral.ai/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-02-27 03:02:07 +00:00
|
|
|
// Avian - https://avian.io
|
|
|
|
|
{
|
|
|
|
|
ModelName: "deepseek-v3.2",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "avian",
|
|
|
|
|
Model: "deepseek/deepseek-v3.2",
|
2026-02-27 03:02:07 +00:00
|
|
|
APIBase: "https://api.avian.io/v1",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ModelName: "kimi-k2.5",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "avian",
|
|
|
|
|
Model: "moonshotai/kimi-k2.5",
|
2026-02-27 03:02:07 +00:00
|
|
|
APIBase: "https://api.avian.io/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-09 10:43:58 +00:00
|
|
|
// Minimax - https://api.minimaxi.com/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "MiniMax-M2.5",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "minimax",
|
|
|
|
|
Model: "MiniMax-M2.5",
|
2026-03-09 10:43:58 +00:00
|
|
|
APIBase: "https://api.minimaxi.com/v1",
|
2026-03-23 07:51:13 +00:00
|
|
|
ExtraBody: map[string]any{"reasoning_split": true},
|
2026-03-09 10:43:58 +00:00
|
|
|
},
|
|
|
|
|
|
2026-03-11 08:33:01 +00:00
|
|
|
// LongCat - https://longcat.chat/platform
|
|
|
|
|
{
|
|
|
|
|
ModelName: "LongCat-Flash-Thinking",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "longcat",
|
|
|
|
|
Model: "LongCat-Flash-Thinking",
|
2026-03-11 08:33:01 +00:00
|
|
|
APIBase: "https://api.longcat.chat/openai",
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-13 06:02:23 +00:00
|
|
|
// ModelScope (魔搭社区) - https://modelscope.cn/my/tokens
|
|
|
|
|
{
|
|
|
|
|
ModelName: "modelscope-qwen",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "modelscope",
|
|
|
|
|
Model: "Qwen/Qwen3-235B-A22B-Instruct-2507",
|
2026-03-13 06:02:23 +00:00
|
|
|
APIBase: "https://api-inference.modelscope.cn/v1",
|
|
|
|
|
},
|
|
|
|
|
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
// VLLM (local) - http://localhost:8000
|
|
|
|
|
{
|
|
|
|
|
ModelName: "local-model",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "vllm",
|
|
|
|
|
Model: "custom-model",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "http://localhost:8000/v1",
|
|
|
|
|
},
|
2026-03-14 14:52:34 +00:00
|
|
|
|
2026-04-07 13:19:06 +00:00
|
|
|
// LM Studio (local) - http://localhost:1234
|
|
|
|
|
{
|
|
|
|
|
ModelName: "lmstudio-local",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "lmstudio",
|
|
|
|
|
Model: "openai/gpt-oss-20b",
|
2026-04-07 13:19:06 +00:00
|
|
|
APIBase: "http://localhost:1234/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-14 14:52:34 +00:00
|
|
|
// Azure OpenAI - https://portal.azure.com
|
|
|
|
|
// model_name is a user-friendly alias; the model field's path after "azure/" is your deployment name
|
|
|
|
|
{
|
|
|
|
|
ModelName: "azure-gpt5",
|
2026-04-22 03:28:47 +00:00
|
|
|
Provider: "azure",
|
|
|
|
|
Model: "my-gpt5-deployment",
|
2026-03-14 14:52:34 +00:00
|
|
|
APIBase: "https://your-resource.openai.azure.com",
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Gateway: GatewayConfig{
|
2026-04-13 14:49:25 +00:00
|
|
|
Host: "localhost",
|
2026-03-17 10:46:00 +00:00
|
|
|
Port: 18790,
|
|
|
|
|
HotReload: false,
|
2026-03-31 12:32:42 +00:00
|
|
|
LogLevel: DefaultGatewayLogLevel,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
2026-04-26 09:41:00 +00:00
|
|
|
Events: EventsConfig{
|
|
|
|
|
Logging: defaultEventLoggingConfig(),
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
Tools: ToolsConfig{
|
2026-03-23 12:55:41 +00:00
|
|
|
FilterSensitiveData: true,
|
|
|
|
|
FilterMinLength: 8,
|
2026-02-24 12:24:32 +00:00
|
|
|
MediaCleanup: MediaCleanupConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-24 12:24:32 +00:00
|
|
|
MaxAge: 30,
|
|
|
|
|
Interval: 5,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
Web: WebToolsConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-04-15 05:03:06 +00:00
|
|
|
Provider: "auto",
|
2026-03-18 03:55:30 +00:00
|
|
|
PreferNative: true,
|
2026-02-28 12:34:33 +00:00
|
|
|
Proxy: "",
|
|
|
|
|
FetchLimitBytes: 10 * 1024 * 1024, // 10MB by default
|
2026-03-15 21:12:03 +00:00
|
|
|
Format: "plaintext",
|
2026-02-18 17:03:34 +00:00
|
|
|
Brave: BraveConfig{
|
|
|
|
|
Enabled: false,
|
2026-03-10 08:34:11 +00:00
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
|
|
|
|
Tavily: TavilyConfig{
|
|
|
|
|
Enabled: false,
|
2026-02-18 17:03:34 +00:00
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-06-07 12:42:04 +00:00
|
|
|
Kagi: KagiConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "https://kagi.com/api/v1/search",
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-04-14 14:58:07 +00:00
|
|
|
Sogou: SogouConfig{
|
2026-02-18 17:03:34 +00:00
|
|
|
Enabled: true,
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-04-14 14:58:07 +00:00
|
|
|
DuckDuckGo: DuckDuckGoConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-05-14 01:50:47 +00:00
|
|
|
Gemini: GeminiSearchConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
Model: "gemini-2.5-flash",
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
Perplexity: PerplexityConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-02-20 11:02:00 +00:00
|
|
|
SearXNG: SearXNGConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "",
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-03-04 06:58:12 +00:00
|
|
|
GLMSearch: GLMSearchConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "https://open.bigmodel.cn/api/paas/v4/web_search",
|
|
|
|
|
SearchEngine: "search_std",
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-03-22 16:51:27 +00:00
|
|
|
BaiduSearch: BaiduSearchConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "https://qianfan.baidubce.com/v2/ai_search/web_search",
|
|
|
|
|
MaxResults: 10,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Cron: CronToolsConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
ExecTimeoutMinutes: 5,
|
2026-03-17 01:44:32 +00:00
|
|
|
AllowCommand: true,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
2026-02-20 09:16:42 +00:00
|
|
|
Exec: ExecConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-20 09:16:42 +00:00
|
|
|
EnableDenyPatterns: true,
|
2026-03-11 08:33:01 +00:00
|
|
|
AllowRemote: true,
|
2026-03-05 09:20:11 +00:00
|
|
|
TimeoutSeconds: 60,
|
2026-02-20 09:16:42 +00:00
|
|
|
},
|
2026-02-20 10:55:04 +00:00
|
|
|
Skills: SkillsToolsConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-20 10:55:04 +00:00
|
|
|
Registries: SkillsRegistriesConfig{
|
2026-04-14 07:14:16 +00:00
|
|
|
&SkillRegistryConfig{
|
|
|
|
|
Name: "clawhub",
|
2026-02-20 10:55:04 +00:00
|
|
|
Enabled: true,
|
|
|
|
|
BaseURL: "https://clawhub.ai",
|
2026-04-14 07:14:16 +00:00
|
|
|
Param: map[string]any{},
|
|
|
|
|
},
|
|
|
|
|
&SkillRegistryConfig{
|
|
|
|
|
Name: "github",
|
|
|
|
|
Enabled: true,
|
|
|
|
|
BaseURL: "https://github.com",
|
|
|
|
|
Param: map[string]any{},
|
2026-02-20 10:55:04 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
MaxConcurrentSearches: 2,
|
|
|
|
|
SearchCache: SearchCacheConfig{
|
|
|
|
|
MaxSize: 50,
|
|
|
|
|
TTLSeconds: 300,
|
|
|
|
|
},
|
|
|
|
|
},
|
feat(feishu,tools): add outbound media delivery via send_file tool (#1156)
* feat(feishu): implement SendMedia and add send_file tool
Add outbound media support for the Feishu channel so the agent can send
images and files to users via the MediaStore pipeline.
Feishu channel:
- SendMedia dispatches media parts as image or file uploads
- sendImage uploads via Image.Create then sends image message
- sendFile uploads via File.Create then sends file message
- feishuFileType maps extensions to Feishu file_type values
send_file tool:
- New tool lets the LLM send a local file to the current chat
- Validates path, registers file in MediaStore, returns media ref
- Agent loop wires tool registration, MediaStore propagation, and
context updates
Tested on Radxa Cubie A7A (arm64) with Feishu websocket channel.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(agent): publish outbound media regardless of SendResponse flag
The SendResponse flag controls whether the agent loop publishes the
final text response (callers that publish it themselves set this to
false). However, the media publish path was also gated behind this
flag, which meant tool-produced media was silently dropped for normal
channel messages.
Media should be published immediately when a tool returns media refs,
independent of how the text response is delivered.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(tools): use magic-bytes MIME detection and add file size limit to send_file
- Replace hardcoded extension-to-MIME map with h2non/filetype (magic
bytes) + mime.TypeByExtension fallback, consistent with the vision
pipeline in resolveMediaRefs
- Add configurable max file size check (defaults to config.DefaultMaxMediaSize,
20 MB) to prevent oversized uploads
- Add tests for magic-bytes detection, extension fallback, size limit,
and default max size
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor(agent): add ForEachTool to AgentRegistry for cross-agent tool lookup
Extract the pattern of iterating agents to find a named tool into
AgentRegistry.ForEachTool, simplifying SetMediaStore propagation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(agent,tools): adapt send_file to ctx-based channel injection after upstream refactor
Replace ContextualTool interface (removed upstream) with direct ctx
reading in SendFileTool.Execute, using ToolChannel/ToolChatID helpers.
Remove updateToolContexts which is no longer needed since ExecuteWithContext
already injects channel/chatID into ctx for all tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(tools): support toggling send_file tool via config
Add SendFileConfig with Enabled field to ToolsConfig, defaulting to
true. Wrap send_file tool registration in loop.go with the config
check, consistent with the pattern used by other tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 11:42:52 +00:00
|
|
|
SendFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-04-07 13:19:06 +00:00
|
|
|
SendTTS: ToolConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
},
|
2026-02-21 05:28:15 +00:00
|
|
|
MCP: MCPConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
},
|
2026-03-09 17:21:49 +00:00
|
|
|
Discovery: ToolDiscoveryConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
TTL: 5,
|
|
|
|
|
MaxSearchResults: 5,
|
|
|
|
|
UseBM25: true,
|
|
|
|
|
UseRegex: false,
|
|
|
|
|
},
|
2026-04-07 13:19:06 +00:00
|
|
|
MaxInlineTextChars: DefaultMCPMaxInlineTextChars,
|
|
|
|
|
Servers: map[string]MCPServerConfig{},
|
2026-02-21 05:28:15 +00:00
|
|
|
},
|
2026-03-05 06:53:26 +00:00
|
|
|
AppendFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
EditFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
FindSkills: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
I2C: ToolConfig{
|
|
|
|
|
Enabled: false, // Hardware tool - Linux only
|
|
|
|
|
},
|
|
|
|
|
InstallSkill: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
ListDir: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-05-18 02:17:34 +00:00
|
|
|
LoadImage: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-05-22 23:20:59 +00:00
|
|
|
Message: MessageToolsConfig{
|
|
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
MediaEnabled: false,
|
2026-03-05 06:53:26 +00:00
|
|
|
},
|
2026-03-09 08:32:21 +00:00
|
|
|
ReadFile: ReadFileToolConfig{
|
|
|
|
|
Enabled: true,
|
2026-04-07 13:19:06 +00:00
|
|
|
Mode: ReadFileModeBytes,
|
2026-03-09 08:32:21 +00:00
|
|
|
MaxReadFileSize: 64 * 1024, // 64KB
|
2026-03-05 06:53:26 +00:00
|
|
|
},
|
2026-04-26 04:44:05 +00:00
|
|
|
Serial: ToolConfig{
|
|
|
|
|
Enabled: false, // Hardware tool - requires host serial ports
|
|
|
|
|
},
|
2026-03-05 06:53:26 +00:00
|
|
|
Spawn: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-03-17 06:41:43 +00:00
|
|
|
SpawnStatus: ToolConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
},
|
2026-03-05 06:53:26 +00:00
|
|
|
SPI: ToolConfig{
|
|
|
|
|
Enabled: false, // Hardware tool - Linux only
|
|
|
|
|
},
|
|
|
|
|
Subagent: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
WebFetch: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
WriteFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Heartbeat: HeartbeatConfig{
|
|
|
|
|
Enabled: true,
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
Interval: 30,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Devices: DevicesConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
MonitorUSB: true,
|
|
|
|
|
},
|
2026-03-11 08:33:01 +00:00
|
|
|
Voice: VoiceConfig{
|
2026-03-22 11:51:32 +00:00
|
|
|
ModelName: "",
|
2026-04-07 13:19:06 +00:00
|
|
|
TTSModelName: "",
|
2026-03-11 08:33:01 +00:00
|
|
|
EchoTranscription: false,
|
2026-04-07 13:19:06 +00:00
|
|
|
ElevenLabsAPIKey: "",
|
2026-03-11 08:33:01 +00:00
|
|
|
},
|
2026-03-10 09:42:05 +00:00
|
|
|
BuildInfo: BuildInfo{
|
|
|
|
|
Version: Version,
|
|
|
|
|
GitCommit: GitCommit,
|
|
|
|
|
BuildTime: BuildTime,
|
|
|
|
|
GoVersion: GoVersion,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-04-11 16:57:26 +00:00
|
|
|
|
|
|
|
|
func defaultChannels() ChannelsConfig {
|
|
|
|
|
defs := map[string]any{
|
|
|
|
|
"whatsapp": map[string]any{
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"bridge_url": "ws://localhost:3001",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"telegram": map[string]any{
|
|
|
|
|
"typing": map[string]any{"enabled": true},
|
|
|
|
|
"placeholder": map[string]any{"enabled": true, "text": []string{"Thinking... 💭"}},
|
|
|
|
|
"settings": map[string]any{
|
2026-05-04 03:40:20 +00:00
|
|
|
"use_markdown_v2": false,
|
|
|
|
|
"media_group_delay_ms": 500,
|
2026-04-11 16:57:26 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"feishu": map[string]any{},
|
|
|
|
|
"discord": map[string]any{},
|
|
|
|
|
"maixcam": map[string]any{
|
|
|
|
|
"settings": map[string]any{"host": "0.0.0.0", "port": 18790},
|
|
|
|
|
},
|
|
|
|
|
"qq": map[string]any{
|
|
|
|
|
"settings": map[string]any{"max_message_length": 2000},
|
|
|
|
|
},
|
|
|
|
|
"dingtalk": map[string]any{},
|
|
|
|
|
"slack": map[string]any{},
|
|
|
|
|
"matrix": map[string]any{
|
|
|
|
|
"group_trigger": map[string]any{"mention_only": true},
|
|
|
|
|
"placeholder": map[string]any{"enabled": true, "text": []string{"Thinking... 💭"}},
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"homeserver": "https://matrix.org",
|
|
|
|
|
"join_on_invite": true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"line": map[string]any{
|
|
|
|
|
"group_trigger": map[string]any{"mention_only": true},
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"webhook_host": "0.0.0.0",
|
|
|
|
|
"webhook_port": 18791,
|
|
|
|
|
"webhook_path": "/webhook/line",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"onebot": map[string]any{
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"ws_url": "ws://127.0.0.1:3001",
|
|
|
|
|
"reconnect_interval": 5,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"wecom": map[string]any{
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"websocket_url": "wss://openws.work.weixin.qq.com",
|
|
|
|
|
"send_thinking_message": true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"weixin": map[string]any{
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"base_url": "https://ilinkai.weixin.qq.com/",
|
|
|
|
|
"cdn_base_url": "https://novac2c.cdn.weixin.qq.com/c2c",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"pico": map[string]any{
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"ping_interval": 30,
|
|
|
|
|
"read_timeout": 60,
|
|
|
|
|
"write_timeout": 10,
|
|
|
|
|
"max_connections": 100,
|
2026-05-19 08:38:47 +00:00
|
|
|
"streaming": map[string]any{"enabled": true},
|
2026-04-11 16:57:26 +00:00
|
|
|
},
|
|
|
|
|
},
|
2026-04-16 02:30:16 +00:00
|
|
|
"irc": map[string]any{
|
|
|
|
|
"settings": map[string]any{
|
|
|
|
|
"server": "",
|
|
|
|
|
"tls": true,
|
|
|
|
|
"nick": "picoclaw",
|
|
|
|
|
"channels": []string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-04-11 16:57:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
channels := make(ChannelsConfig, len(defs))
|
|
|
|
|
for name, def := range defs {
|
|
|
|
|
data, err := json.Marshal(def)
|
|
|
|
|
if err != nil {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
bc := &Channel{}
|
|
|
|
|
if err := json.Unmarshal(data, bc); err != nil {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
bc.SetName(name)
|
|
|
|
|
if bc.Type == "" {
|
|
|
|
|
bc.Type = name
|
|
|
|
|
}
|
|
|
|
|
channels[name] = bc
|
|
|
|
|
}
|
|
|
|
|
return channels
|
|
|
|
|
}
|