安装
无需 Node.js,一行命令即可安装独立二进制,并将agentkit(及别名 ak)加入 PATH:
- wget
- curl
鉴权
CLI 会对每一次 Volcengine OpenAPI 请求签名,凭证二选一:- AK/SK
- SSO
在环境变量或本地
.env(已被 git 忽略)中设置:三步部署
1
脚手架项目
2
构建并部署
3
调用运行时
agentkit tree 打印命令树。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
agentkit(及别名 ak)加入 PATH:
wget -qO- https://agentkit-cli.tos-cn-beijing.volces.com/install.sh | sh
curl -fsSL https://agentkit-cli.tos-cn-beijing.volces.com/install.sh | sh
agentkit --help
~/.agentkit,并在 ~/.local/bin 下创建 agentkit、ak 两个软链接。若提示命令未找到,请将 ~/.local/bin 加入 PATH。需要安装指定版本时,设置环境变量 AGENTKIT_VERSION(默认 latest)。.env(已被 git 忽略)中设置:VOLCENGINE_ACCESS_KEY=...
VOLCENGINE_SECRET_KEY=...
VOLCENGINE_REGION=cn-beijing # 可选,默认 cn-beijing
agentkit login <sso-address>
agentkit whoami
invoke)部署在 AgentKit Runtime 上的智能体;云上控制面接口尚不能基于 SSO 身份进行识别与鉴权,因此运行时、知识库、记忆、工具等管理命令仍需使用 AK/SK。脚手架项目
agentkit init my-agent -L python -t basic-agent
cd my-agent
构建并部署
agentkit deploy --name my-agent
调用运行时
agentkit invoke my-agent -m "hello"
agentkit tree 打印命令树。