常用命令
source ~/.bashrcopenclaw onboard --install-daemon
openclaw configure --section web
openclaw gateway status你的名字是聋瞎鸨鸨{
wizard: {
lastRunAt: '2026-03-31T10:52:56.310Z',
lastRunVersion: '2026.3.28',
lastRunCommand: 'onboard',
lastRunMode: 'local',
},
auth: {
profiles: {
'deepseek:default': {
provider: 'deepseek',
mode: 'api_key',
},
},
},
models: {
mode: 'merge',
providers: {
deepseek: {
baseUrl: 'https://api.deepseek.com',
api: 'openai-completions',
models: [
{
id: 'deepseek-chat',
name: 'DeepSeek Chat',
api: 'openai-completions',
reasoning: false,
input: [
'text',
],
cost: {
input: 0.28,
output: 0.42,
cacheRead: 0.028,
cacheWrite: 0,
},
contextWindow: 131072,
maxTokens: 8192,
compat: {
supportsUsageInStreaming: true,
},
},
{
id: 'deepseek-reasoner',
name: 'DeepSeek Reasoner',
api: 'openai-completions',
reasoning: true,
input: [
'text',
],
cost: {
input: 0.28,
output: 0.42,
cacheRead: 0.028,
cacheWrite: 0,
},
contextWindow: 131072,
maxTokens: 65536,
compat: {
supportsUsageInStreaming: true,
},
},
],
},
},
},
agents: {
defaults: {
model: {
primary: 'deepseek/deepseek-chat',
},
models: {
'deepseek/deepseek-chat': {
alias: 'DeepSeek',
},
},
workspace: '/home/lyl07583/.openclaw/workspace',
},
},
tools: {
profile: 'coding',
},
commands: {
native: 'auto',
nativeSkills: 'auto',
restart: true,
ownerDisplay: 'raw',
},
session: {
dmScope: 'per-channel-peer',
},
gateway: {
port: 18789,
mode: 'local',
bind: 'loopback',
controlUi: {
allowInsecureAuth: true,
},
auth: {
mode: 'token',
token: '__OPENCLAW_REDACTED__',
},
tailscale: {
mode: 'off',
resetOnExit: false,
},
nodes: {
denyCommands: [
'camera.snap',
'camera.clip',
'screen.record',
'contacts.add',
'calendar.add',
'reminders.add',
'sms.send',
],
},
},
meta: {
lastTouchedVersion: '2026.3.28',
lastTouchedAt: '2026-03-31T10:52:56.372Z',
},
}bash
$ openclaw channels list
# channel名称从配置文件中获取
$ openclaw channels remove --channel wecomSkill
根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装Skillhub商店。mcporter
配置文件地址 ~/.mcporter/mcporter.json
https://github.com/steipete/mcporter
npx mcporter listjson
{
"mcpServers": {
"context7": {
"description": "Context7 docs MCP",
"baseUrl": "https://mcp.context7.com/mcp",
"headers": {
"Authorization": "$env:CONTEXT7_API_KEY"
}
},
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"],
"env": { "npm_config_loglevel": "error" }
},
},
"imports": ["cursor", "claude-code", "claude-desktop", "codex", "windsurf", "opencode", "vscode"]
}{
"mcpServers": {
"walle": {
"description": "瓦力MCP",
"baseUrl": "http://xxx.com/open/mcp",
"headers": {
"Authorization": "e5e3bbb38b1b496ba71eed1ef4dc2f31"
}
},
}
}vscode
https://code.visualstudio.com/docs/copilot/customization/mcp-servers
https://code.visualstudio.com/docs/copilot/reference/mcp-configuration#_configuration-structure
.vscode/mcp.json
json
{
"servers": {
"istr": {
"url": "http://istr.cn/open/mcp",
"type": "http",
"headers": {
"Authorization": "e5e3bbb38b1b496ba71eed1ef4dc2f31"
}
}
},
"inputs": []
}