paths

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package paths resolves AgentRoute's own state directories.

AgentRoute never writes its own state into a linked tool's config directory (e.g. ~/.claude/). All AgentRoute state lives under the OS standard config directory, in an "AgentRoute" subfolder:

Windows: %APPDATA%\AgentRoute\
macOS:   ~/Library/Application Support/AgentRoute/
Linux:   ~/.config/agentroute/ (respects $XDG_CONFIG_HOME via os.UserConfigDir)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFile

func ConfigFile() (string, error)

ConfigFile returns the path to AgentRoute's main app config file.

func GatewayStateFile

func GatewayStateFile() (string, error)

GatewayStateFile returns the path to the file recording the running gateway's port, session auth token, and pid.

func LinkStateFile

func LinkStateFile(platformID string) (string, error)

LinkStateFile returns the path to the file recording exactly which keys AgentRoute wrote into a given platform's config, so Unlink can remove precisely those keys and nothing else.

func LogsDir

func LogsDir() (string, error)

LogsDir returns (creating if needed) AgentRoute's own log directory.

func ProfilesDir

func ProfilesDir() (string, error)

ProfilesDir returns (creating if needed) the directory holding saved profile JSON files.

func Root

func Root() (string, error)

Root returns AgentRoute's top-level state directory, creating it if it does not already exist.

func SidecarDir

func SidecarDir() (string, error)

SidecarDir returns (creating if needed) the directory holding the rendered LiteLLM config, its pid file, and its log file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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