Live Different
Live Different
用 CLI、SDK、API Key 和自动化机器人,把 2SOMEone 接入你的脚本、Agent、群聊和角色创作流程。
CLI
2s1
SDK
Node 20+
Bot
runtime key
Agent
JSON ready
Developer Tools
2SOMEone 的开发者能力分成六块:命令行、账号凭证、机器人运行时、Bot SDK、AI 角色卡、Agent 安全输出。每一块都有明确入口和权限边界。
本地脚本、SSH、CI 和 Agent 都从同一个命令入口调用平台能力。
human key 代表用户本人,负责管理自己的数据、机器人和角色卡。
用 human key 管理机器人,用 runtime key 让机器人执行已授权任务。
给长期运行的脚本和 GitHub Actions 用,直接拿 bot runtime key 调 v1 API。
用平台托管的 DeepSeek 和自定义角色卡开聊;数据只在你账号里,不走公开角色广场。
命令先返回平台规则和安全边界,再让自动化决定下一步。
CLI
本地脚本、SSH、CI 和 Agent 都从同一个命令入口调用平台能力。
入口命令
每个模块都能从 CLI 或页面入口开始。
npm install -g @2someone/clilogin 支持浏览器登录、--device 设备码登录和 --token 直接写入。
apikey list/create/revoke 管理 human account API Key。
所有关键命令支持 --json,错误输出会遮蔽敏感 key。
docs、whoami、logout 是日常诊断入口。
Keys
human key 代表用户本人,负责管理自己的数据、机器人和角色卡。
入口命令
每个模块都能从 CLI 或页面入口开始。
2s1 apikey create codex --expires 1yWeb 设置页和 CLI 共用同一套 API Key 管理能力。
每把 key 可单独禁用、撤销、统计调用次数。
设备码登录适合无浏览器环境,不需要复制网页登录态。
human key 不会被当成 bot runtime key 自动降级使用。
Bot Runtime
用 human key 管理机器人,用 runtime key 让机器人执行已授权任务。
入口命令
每个模块都能从 CLI 或页面入口开始。
2s1 bot create --username news_bot --nickname 新闻机器人 --capability bubble.create管理命令覆盖 create、update、pause、resume、disable、install。
runtime key 支持 list、rotate、revoke,明文只展示一次。
当前已实装能力:bubble.create、bubble.read、chat.send。
安装到群聊、轮换 key、写测试等副作用命令都需要 --yes。
SDK
给长期运行的脚本和 GitHub Actions 用,直接拿 bot runtime key 调 v1 API。
入口命令
每个模块都能从 CLI 或页面入口开始。
npm install @2someone/bot-sdkBotClient.me() 验证 runtime key 并缓存身份。
createBubble() 发布 Bubble,listOwnBubbles() 只读自己发布的 Bubble。
sendChatMessage() 向已安装本机器人的群聊发消息。
统一抛 BotApiError,429 和 5xx 默认指数退避重试。
Roleplay
用平台托管的 DeepSeek 和自定义角色卡开聊;数据只在你账号里,不走公开角色广场。
入口命令
每个模块都能从 CLI 或页面入口开始。
打开 /dashboard/roleplay → 新建角色卡 → 开始会话支持 Tavern Card v2:编辑器可粘贴 JSON 导入。
角色卡可见性目前只有私密 / 未列出,没有公开广场。
会话走独立 roleplay 模块,不占用普通私信 / 群聊。
需 Level 1;模型和 API Key 由平台统一管理。
Agent & CI
命令先返回平台规则和安全边界,再让自动化决定下一步。
入口命令
每个模块都能从 CLI 或页面入口开始。
2s1 --json bot contextbot context 和 card context 会列出 read-only、mutating、requiresYes 命令。
Agent 默认只跑 context/list/show/key list/bubble-read。
delete、publish、chat-send、regenerate、reset、key rotate 等必须显式 --yes。
JSON 输出适合 Codex Cloud、GitHub Actions 和自写脚本消费。
Quick Start
npm install -g @2someone/cli2s1 login --device2s1 --json bot context2s1 card create --name "玉玉" --first-mes "你好~"Build on 2SOMEone
从一把 API Key 开始。先用 CLI 跑通,再把稳定任务迁到 Bot SDK 或 Agent 工作流。