用一条提示词让 Claude 通过你自己的 API 账号干活
Lenny Rachitsky 分享一条可直接粘贴的提示词,让 Claude Code(或其它 Agent)通过用户自己的 Anthropic API 账号执行任务,例如撰写播客嘉宾准备资料。流程包括:通过安全密钥输入框索取 API Key 和 Workspace ID,不在聊天中明文输入或显示。 技术实现上,提示词要求编写一个调用 Anthropic Messages API(api.anthropic.com/v1/messages)的辅助脚本,使用 x-api-key 和 anthropic-version 请求头,如有 Workspace ID 则附加 anthropic-workspace-id 请求头。随后通过 GET /v1/models 列出可用模型供用户选择,发送测试消息验证连通性,失败时给出具体错误(如余额不足)并指向 console.anthropic.com 处理。 工作流设计为分工模式:指定的 Claude 模型负责生成初稿,Agent 本身负责审核和事实核查;只保留返回内容中的 text 类型块,过滤 thinking 块;API 调用失败时回退为 Agent 自行起草。配置保存到长期记忆中,后续同类任务无需重新设置。
Current read
这是 Lenny Rachitsky 分享的一条即用型提示词,能让 Claude 用你自己付费的 API Key 干活,把起草外包给模型、让 Agent 只做审核。比起让 Agent 全权生成,这种分工能省订阅额度,还带失败回退和密钥安全处理,适合经常写重复性稿件的开发者。
Evidence
11 sourcesConflict check
Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.