Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/clawfleet/ClawFleet
/ functions
Functions
407 in github.com/clawfleet/ClawFleet
⨍
Functions
407
◇
Types & classes
54
↓ 273 callers
Function
t
(key, ...args)
internal/web/static/js/i18n.js:491
↓ 155 callers
Function
writeError
writeError writes a JSON error response.
internal/web/handlers.go:606
↓ 45 callers
Function
writeJSON
writeJSON writes a JSON response.
internal/web/handlers.go:566
↓ 37 callers
Method
Get
Get returns a copy of the instance with the given name, or nil if not found.
internal/state/store.go:114
↓ 36 callers
Function
request
(method, path, body)
internal/web/static/js/api.js:3
↓ 31 callers
Function
dockerExecAs
dockerExecAs runs a command inside a container as the specified user.
internal/container/configure.go:552
↓ 24 callers
Method
Close
()
internal/web/handlers_image.go:270
↓ 24 callers
Method
loadAssets
()
internal/web/handlers_assets.go:19
↓ 24 callers
Method
loadStore
loadStore loads the state from disk. Called per-request to stay in sync with CLI.
internal/web/server.go:45
↓ 22 callers
Function
DataDir
()
internal/config/config.go:109
↓ 21 callers
Function
useLang
()
internal/web/static/js/i18n.js:476
↓ 18 callers
Method
Save
()
internal/state/store.go:85
↓ 17 callers
Function
refresh
()
internal/web/static/js/components/snapshots.js:11
↓ 16 callers
Function
Status
Status returns the container's status string and its StartedAt time (zero if not running).
internal/container/manager.go:136
↓ 15 callers
Method
SaveAssets
SaveAssets persists the asset store to disk.
internal/state/assets.go:95
↓ 14 callers
Function
Load
()
internal/state/store.go:61
↓ 13 callers
Method
Remove
(name string)
internal/state/store.go:101
↓ 12 callers
Function
NewClient
()
internal/container/client.go:9
↓ 12 callers
Method
SetStatus
SetStatus updates the status of the named instance.
internal/state/store.go:127
↓ 10 callers
Function
dashboardLogPath
dashboardLogPath returns the path to the dashboard log file.
internal/cli/daemon.go:63
↓ 9 callers
Method
ImageRef
()
internal/config/config.go:69
↓ 8 callers
Method
IsHermes
IsHermes reports whether this instance uses the Hermes runtime.
internal/state/store.go:32
↓ 8 callers
Function
Start
(cli *docker.Client, containerID string)
internal/container/manager.go:114
↓ 7 callers
Method
Add
(inst *Instance)
internal/state/store.go:95
↓ 7 callers
Method
Snapshot
Snapshot returns a copy of all instances.
internal/state/store.go:153
↓ 7 callers
Function
dockerExecOutputAs
dockerExecOutputAs runs a command as the specified user and returns its stdout.
internal/container/configure.go:584
↓ 7 callers
Function
pidFromFile
pidFromFile reads the PID from the standard PID file.
internal/cli/daemon.go:85
↓ 7 callers
Function
writeSSE
writeSSE writes a single Server-Sent Event, handling multi-line data correctly.
internal/web/handlers_image.go:225
↓ 6 callers
Method
GetChannel
GetChannel returns a channel asset by ID, or nil.
internal/state/assets.go:178
↓ 6 callers
Method
GetCharacter
GetCharacter returns a character asset by ID, or nil.
internal/state/assets.go:261
↓ 6 callers
Method
Publish
Publish sends an event to all subscribers (non-blocking).
internal/web/events.go:54
↓ 6 callers
Function
buildRoster
buildRoster returns the list of teammates for the given instance, excluding itself. Only instances with a character asset are included in the roster.
internal/web/handlers_configure.go:259
↓ 6 callers
Function
channelPolicySteps
(channel, channelCfg string)
internal/container/configure.go:61
↓ 5 callers
Function
LoadSnapshots
LoadSnapshots loads the snapshot store from disk.
internal/state/snapshots.go:33
↓ 5 callers
Method
ReleaseChannelByInstance
ReleaseChannelByInstance clears UsedBy for all channels assigned to the given instance.
internal/state/assets.go:237
↓ 5 callers
Function
decodeJWTAccountID
decodeJWTAccountID extracts the ChatGPT account ID from a JWT access token. Returns empty string on failure (non-fatal).
internal/web/oauth_codex.go:268
↓ 5 callers
Function
doValidationRequest
(req *http.Request, provider string)
internal/web/validate.go:82
↓ 5 callers
Method
plistPath
()
internal/cli/daemon_launchd.go:52
↓ 5 callers
Function
waitForGateway
waitForGateway polls the gateway health endpoint until it responds or timeout.
internal/container/configure.go:838
↓ 4 callers
Method
AddCharacter
AddCharacter adds a character asset.
internal/state/assets.go:274
↓ 4 callers
Function
FindAvailable
FindAvailable returns the first available TCP port >= start that is not in used.
internal/port/allocator.go:9
↓ 4 callers
Function
ImageExists
(cli *docker.Client, imageRef string)
internal/container/image.go:16
↓ 4 callers
Function
Load
()
internal/config/config.go:90
↓ 4 callers
Function
LoadAssets
LoadAssets loads the asset store from disk.
internal/state/assets.go:65
↓ 4 callers
Function
NewServiceManager
NewServiceManager returns systemd if available, otherwise falls back to PID-based.
internal/cli/daemon_linux.go:20
↓ 4 callers
Function
RenderSoulMarkdown
RenderSoulMarkdown produces the SOUL.md content from the given parameters. Exported as a pure function for testability.
internal/container/configure.go:490
↓ 4 callers
Method
SaveSnapshots
SaveSnapshots persists the snapshot store to disk.
internal/state/snapshots.go:58
↓ 4 callers
Method
SetConfig
SetConfig stores the asset IDs used to configure the named instance.
internal/state/store.go:139
↓ 4 callers
Method
Start
Start starts the daemon via the platform service manager.
internal/cli/daemon.go:22
↓ 4 callers
Function
Stop
(cli *docker.Client, containerID string)
internal/container/manager.go:118
↓ 4 callers
Function
ValidateChannelToken
ValidateChannelToken validates a channel's messaging credentials.
internal/web/validate.go:126
↓ 4 callers
Function
applyConfigSteps
(cli *docker.Client, containerID, user string, steps []configSetStep)
internal/container/configure.go:48
↓ 4 callers
Function
close
()
internal/web/static/js/ws.js:48
↓ 4 callers
Function
formatBytes
(bytes)
internal/web/static/js/utils.js:1
↓ 4 callers
Function
generateID
()
internal/web/handlers_assets.go:13
↓ 4 callers
Function
generatePKCE
generatePKCE creates a PKCE code verifier and its S256 challenge.
internal/web/oauth_codex.go:76
↓ 4 callers
Function
instanceToResponse
(inst state.Instance, assets *state.AssetStore)
internal/web/handlers.go:39
↓ 4 callers
Method
loadSnapshots
()
internal/web/handlers_snapshots.go:12
↓ 4 callers
Function
maskToken
(token)
internal/web/static/js/components/channel-assets.js:6
↓ 4 callers
Method
refreshTeammateRosters
refreshTeammateRosters rewrites SOUL.md for all other running instances that have a character, so their roster reflects the latest fleet state. Errors
internal/web/handlers_configure.go:291
↓ 4 callers
Function
resolveTargets
resolveTargets returns copies of the instances matching name, or all instances if name == "all".
internal/cli/helpers.go:8
↓ 4 callers
Function
slackJSONResponse
(status int, body string)
internal/web/validate_test.go:16
↓ 4 callers
Function
withPending
(name, action, fn)
internal/web/static/js/app.js:102
↓ 3 callers
Method
GetByName
GetByName returns a snapshot by name, or nil.
internal/state/snapshots.go:93
↓ 3 callers
Method
GetModel
GetModel returns a model asset by ID, or nil.
internal/state/assets.go:119
↓ 3 callers
Method
HermesImageRef
()
internal/config/config.go:73
↓ 3 callers
Function
ImageTag
ImageTag returns the Docker image tag corresponding to this CLI version. Only exact release tags (e.g. "v0.1.0") map to release images. Local git desc
internal/version/version.go:23
↓ 3 callers
Function
InjectSoul
InjectSoul renders the character fields into a SOUL.md file and writes it into the container. The OpenClaw gateway watches this file for changes, so n
internal/container/configure.go:537
↓ 3 callers
Method
IsInstalled
IsInstalled reports whether the service definition exists.
internal/cli/daemon.go:28
↓ 3 callers
Method
IsRunning
IsRunning reports whether the daemon is currently running.
internal/cli/daemon.go:30
↓ 3 callers
Function
PullImage
PullImage pulls an image from a remote registry.
internal/container/image.go:68
↓ 3 callers
Function
Remove
(cli *docker.Client, containerID string)
internal/container/manager.go:122
↓ 3 callers
Function
ValidateChannelCredentials
ValidateChannelCredentials checks whether the required credentials for a channel are present before attempting live validation or configuration.
internal/web/validate.go:102
↓ 3 callers
Method
Write
(p []byte)
internal/web/handlers_image.go:246
↓ 3 callers
Function
connectWS
(pathOrUrl, onMessage, raw = false, onStatus)
internal/web/static/js/ws.js:15
↓ 3 callers
Function
mockAssetsForRoster
(t *testing.T)
internal/web/roster_test.go:28
↓ 3 callers
Function
mockStoreForRoster
mockStoreForRoster creates an isolated Store with only the given instances. Uses a temp HOME dir so state.Load() returns an empty store.
internal/web/roster_test.go:12
↓ 3 callers
Function
parseState
parseState splits the OAuth state into nonce and dashboard origin.
internal/web/oauth_codex.go:103
↓ 3 callers
Function
safeDirName
safeDirName converts a display name to a filesystem-safe directory name by replacing spaces with hyphens.
internal/snapshot/snapshot.go:21
↓ 3 callers
Method
unitPath
()
internal/cli/daemon_linux.go:62
↓ 3 callers
Function
withTestHTTPClient
(t *testing.T, fn roundTripperFunc)
internal/web/validate_test.go:24
↓ 2 callers
Method
AddChannel
AddChannel adds a channel asset.
internal/state/assets.go:191
↓ 2 callers
Method
AddModel
AddModel adds a model asset.
internal/state/assets.go:132
↓ 2 callers
Function
Build
(cli *docker.Client, imageRef string, openclawVersion string, out io.Writer)
internal/container/image.go:31
↓ 2 callers
Function
Configure
Configure runs openclaw CLI commands inside the container to set up the instance.
internal/container/configure.go:98
↓ 2 callers
Function
Create
(cli *docker.Client, p CreateParams)
internal/container/manager.go:28
↓ 2 callers
Function
DefaultConfig
()
internal/config/config.go:77
↓ 2 callers
Function
Delete
Delete removes a snapshot directory from disk.
internal/snapshot/snapshot.go:149
↓ 2 callers
Function
EnsureNetwork
EnsureNetwork creates the "clawfleet-net" container network if it does not already exist.
internal/container/network.go:13
↓ 2 callers
Function
ExecAs
ExecAs runs a command inside a container as the specified user (public wrapper).
internal/container/configure.go:547
↓ 2 callers
Method
Install
Install creates the service definition (systemd unit / launchd plist).
internal/cli/daemon.go:18
↓ 2 callers
Function
IsNotFound
IsNotFound returns true if the error indicates the container does not exist.
internal/container/manager.go:130
↓ 2 callers
Method
List
List returns a copy of all snapshot metadata.
internal/state/snapshots.go:69
↓ 2 callers
Function
Load
Load copies all files from a snapshot directory into an instance data directory.
internal/snapshot/snapshot.go:118
↓ 2 callers
Function
Logs
(cli *docker.Client, containerID string, follow bool, out io.Writer)
internal/container/manager.go:151
↓ 2 callers
Function
NamingPrefix
NamingPrefix returns the instance name prefix for the given runtime type. New instances are named "openclaw-N" or "hermes-N" based on runtime.
internal/config/config.go:62
↓ 2 callers
Method
NextName
(prefix string)
internal/state/store.go:174
↓ 2 callers
Function
ParseMemoryBytes
ParseMemoryBytes converts a human-readable string like "4g", "512m" to bytes.
internal/container/manager.go:178
↓ 2 callers
Function
Save
Save copies an instance's data directory into a named snapshot. It skips channels/ and sessions/ directories and strips the "channels" key from opencl
internal/snapshot/snapshot.go:28
↓ 2 callers
Method
Status
Status returns daemon status info.
internal/cli/daemon.go:32
next →
1–100 of 407, ranked by callers