Armadra

使用

用量与模型

怎样给节点选择模型,以及在资源面板里看机器与会话的占用。


这一篇回答两件事:节点用哪个模型,以及机器和会话占了多少资源。

给节点选择模型

Armadra 不提供模型服务,模型由各 CLI 自己调用。你可以为每个节点指定启动时使用的模型:

  1. 在 Agent 节点头部点「更多」,选「模型」。
  2. 在列表里选一个模型;选「CLI 默认」表示不指定,沿用该 CLI 自己的设置。
  3. 提示「下一次启动使用 …」时,说明当前会话不受影响,新模型在节点下次启动或接回会话时生效。

列表只对支持选择模型的 Agent 出现。候选来自该 CLI 自己的别名与配置(例如 Codex 配置文件里写的模型),并参考公开的模型目录补充;联网取不到时退回一份内置的常用列表。你实际能用哪些模型,仍取决于你在 CLI 里登录的账户与套餐。

默认使用的 Agent 与权限模式在「设置 → 默认」里设置,见设置、更新与数据。

资源面板:机器和会话占了多少

资源面板显示的是机器与终端会话的负载,不是模型费用。

  1. 点右上角工具簇里的「资源」,或按 ⇧⌘U(Windows / Linux 为 Ctrl+Shift+U)。
  2. 「执行主机」部分显示 CPU、内存、交换、磁盘和「内存压力」(正常 / 偏紧 / 紧张);有远程主机时可按「全部主机」「本机」筛选。
  3. 「会话」列表按 CPU、内存或名称排序;每个会话可以展开进程树,点「定位到节点」跳到画布上的节点,点「结束会话」把它停掉(会先确认)。会话内存是进程树的估计值,共享页会重复计入,不等于独占内存。
  4. 休眠中的会话显示「已休眠,不占内存」。
  5. 「孤立会话」列出没有对应节点的会话,可以「附着到新节点」或「终止」。
  6. 「平台组件」列出 Armadra 自己的进程占用。

相关设置在「设置 → 本机服务」的「电源与资源」:

设置 作用
防休眠策略 从不 / 有活跃 Agent 会话时 / 手动
工作时保持唤醒 Agent 工作期间阻止系统空闲睡眠
采样间隔 资源数据多久刷新一次
内存提醒阈值 1、2、4、8、16 GB 可选;会话超过阈值时变色并提醒一次,不会自动处置

用量与费用统计

模型用量与额度统计暂未开放,界面里没有对应入口。要看账户的用量与额度,用各 CLI 自带的命令或官网;团队使用 Armadra 云时,可在控制台查看团队的用量与计划,见团队与控制台。

Guides

Usage and models

How to pick a model for a node and see machine and session load in the Resources panel.


This page answers two questions: which model a node uses, and how much of the machine the sessions take up.

Pick a model for a node

Armadra does not provide model services; each CLI calls its own models. You can choose which model a node starts with:

  1. Click “More” in the agent node’s header and choose “Model”.
  2. Pick a model from the list; “CLI default” means none is specified and the CLI’s own setting applies.
  3. When you see “The next session will use …”, the running session is unaffected; the new model takes effect the next time the node starts or resumes a session.

The list appears only for agents that support choosing a model. Candidates come from the CLI’s own aliases and configuration (for example the model written in Codex’s config file), supplemented from a public model catalogue; if that cannot be reached, a built-in list of common models is used. Which models you can actually use still depends on the account and plan you signed in with in the CLI.

The default agent and permission mode are set in “Settings → Defaults”; see Settings, updates and data.

Resources panel: how much the machine and sessions use

The Resources panel shows machine and terminal-session load, not model cost.

  1. Click “Resources” in the toolbar cluster at the top right, or press ⇧⌘U (Ctrl+Shift+U on Windows / Linux).
  2. The “Execution host” section shows CPU, Memory, Swap, Disk and “Memory pressure” (Normal / Warning / Critical); with remote hosts you can filter by “All hosts” or “Local”.
  3. The “Sessions” list sorts by CPU, memory or name; a session can expand its process tree, “Find on canvas” jumps to its node, and “End session” stops it (after a confirmation). Session memory is an estimate for the process tree; shared pages are counted repeatedly, so it is not exclusive memory.
  4. A hibernated session shows “Hibernated; uses no memory”.
  5. “Orphaned sessions” lists sessions with no node; you can “Attach to a new node” or “Terminate” them.
  6. “Armadra’s own processes” lists the load of Armadra’s own components.

Related settings are under “Power & resources” in “Settings → Local service”:

Setting What it does
Keep-awake policy Never / while an agent session is active / manual
Stay awake while working Holds off idle system sleep while agents work
Sampling interval How often resource data refreshes
Memory reminder threshold 1, 2, 4, 8 or 16 GB; a session above it changes colour and reminds you once, with no automatic action

Usage and cost statistics

Model usage and quota statistics are not open yet, and the interface has no entry for them. To see an account’s usage and quota, use each CLI’s own commands or website; when your team uses Armadra Cloud, team usage and plan are in the console; see Teams and console.

在 GitHub 上编辑本页 Edit this page on GitHub