config

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultModel         = "openrouter/free"
	DefaultContextWindow = 128000
)

Variables

This section is empty.

Functions

func AddWhitelisted

func AddWhitelisted(cmd string) error

Adds a command to the config

func Save

func Save(cfg Config) error

Types

type Config

type Config struct {
	APIKey          string            `json:"api_key"`
	BaseURL         string            `json:"base_url"`
	Model           string            `json:"model"`
	Theme           string            `json:"theme"`
	ContextWindow   int               `json:"context_window"`
	PermissiveShell bool              `json:"permissive_shell"`
	PermissiveWrite bool              `json:"permissive_write"`
	WhitelistedCmds []string          `json:"whitelisted_cmds"`
	TavilyAPIKey    string            `json:"tavily_api_key"`
	MCPServers      []MCPServerConfig `json:"mcp_servers"`
}

func Load

func Load() Config

type MCPServerConfig

type MCPServerConfig struct {
	Name    string   `json:"name"`
	Command string   `json:"command"`
	Args    []string `json:"args"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL