> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# 会话

> 从 CLI 持久化并恢复 Arka 对话会话。

Arka 会在本地存储频道对话，以便后续消息能延续其上下文。
默认 CLI 会话是 `cli/default`；webhook 和消息平台集成使用其
频道与聊天 ID 作为会话键。

```bash theme={null}
arka session status
arka session list
arka session resume cli default
arka session context cli default
arka session reset cli default
```

同样的动作也接受自然语言：

```bash theme={null}
arka "list my sessions"
arka "resume my session"
```

会话文件位于 `~/.config/arka/message-sessions/`（或由
`ARKA_CONFIG_DIR` 选择的目录）下。使用 `MESSAGE_SESSIONS=0`
可关闭持久化。


## Related topics

- [频道会话和子 Agent 委托](/cn/guides/hermes-features.md)
- [会话记忆、心跳和技能门禁](/cn/guides/openclaw-features.md)
- [聊天、网络搜索和事实问答技能](/cn/guides/chat.md)
- [Web 仪表盘](/cn/guides/web-dashboard.md)
- [n8n 工作流自动化](/cn/guides/n8n.md)
