← 返回 Skills 市场
Python Sdk
作者
Ömer Karışman
· GitHub ↗
· v0.1.5
1338
总下载
0
收藏
5
当前安装
2
版本数
在 OpenClaw 中安装
/install python-sdk
功能描述
Python SDK for inference.sh - run AI apps, build agents, and integrate with 150+ models. Package: inferencesh (pip install inferencesh). Supports sync/async,...
安全使用建议
This skill appears to be a documentation-only SDK integration for inference.sh and is coherent with that purpose — but take the following precautions before using it: 1) The SDK requires an inference.sh API key (examples use INFERENCE_API_KEY) even though the skill metadata lists no required env vars; treat that key like any secret and limit its scope. 2) Examples show automatic upload of local file paths and large-file multipart uploads — avoid pointing the SDK at sensitive files unless you intend to send them to the external service. 3) Webhook tools and public=true file options can make data reachable to third parties; verify webhook URLs and permissions. 4) Several examples enable code execution and show use of eval — running untrusted expressions or auto-executing code from agents is dangerous; require human approval and sanitize inputs. 5) The skill bundle is instruction-only and has no provenance (homepage unknown, owner id only). Before installing or running pip install inferencesh, verify the package source (official website or PyPI project page) and review the actual pip package contents and version to ensure you’re installing the legitimate SDK. If you need higher assurance, ask the publisher for a homepage or source repository link and inspect the released package code.
功能分析
Type: OpenClaw Skill
Name: python-sdk
Version: 0.1.5
This skill bundle is classified as suspicious due to the extremely broad permissions and powerful capabilities it exposes, which could be exploited via prompt injection against the AI agent. The `SKILL.md` explicitly grants `Bash(python *)` permission, allowing the agent to execute arbitrary Python code. Furthermore, the documentation details the use of `internal_tools().code_execution(True)` and `webhook_tool` (with `secret` access) for making external HTTP requests, which could be leveraged for data exfiltration or unauthorized actions if the agent is prompted maliciously. While the files themselves are documentation and do not contain explicit malware, the combination of broad execution permissions and powerful network/file access tools presents a significant attack surface.
能力评估
Purpose & Capability
The name/description (Python SDK for inference.sh) matches the content: examples for sync/async clients, agents, tool-builder, file uploads, sessions, and streaming. The allowed tools (pip, python) and examples align with the declared purpose.
Instruction Scope
The runtime instructions are focused on SDK usage and remain within the SDK's purpose. However, the docs include examples that read local files, auto-upload file paths, use multipart uploads, and show how to enable code execution and eval-style handlers — all legitimate SDK features but they expand the agent's I/O surface and can send local data to an external service if used. The SKILL.md also shows webhook tools that call arbitrary external endpoints.
Install Mechanism
This is instruction-only with no install spec and no code shipped in the skill bundle, so nothing is written to disk by the skill itself. The documented install (pip install inferencesh) is standard for a Python SDK but is external to the skill bundle.
Credentials
The skill metadata declares no required environment variables, but the SKILL.md repeatedly shows using an API key (api_key parameter or INFERENCE_API_KEY env var). That mismatch is a documentation/metadata inconsistency: in practice the SDK needs an inference.sh API key to function. Examples also reference webhook secrets and third-party tokens (e.g., GITHUB_TOKEN, Slack webhooks) as part of examples—expected for integrations but not declared by the skill metadata.
Persistence & Privilege
The skill does not request always:true, no install, no config path access, and does not attempt to modify other skills or system-wide settings. Autonomous invocation is allowed (default) but is not combined with other elevated privileges here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install python-sdk - 安装完成后,直接呼叫该 Skill 的名称或使用
/python-sdk触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.5
- Initial public release of the Python SDK for inference.sh.
- Run, stream, and manage AI apps with support for 150+ models.
- Includes agent/assistant building: template and ad-hoc agent support with tools and human approval flows.
- Features file upload API (automatic/manual) and session management for stateful execution.
- Tool builder API enables creation of custom, app, agent, webhook, and internal tools.
- Supports both synchronous and asynchronous (async) operation modes.
v0.1.0
Initial public release of the python-sdk.
- Provides a Python SDK for inference.sh, enabling AI app execution, agent development, and integration with over 150 models.
- Supports synchronous/asynchronous operations, streaming, file uploads, and stateful sessions.
- Includes agent builder APIs (template and ad-hoc), tool builder, webhook/integration support, and human approval workflows.
- Comprehensive documentation with code samples for installation, authentication, task execution, agent/skill development, and file handling.
- Available via pip as inferencesh, compatible with Python 3.8+.
元数据
常见问题
Python Sdk 是什么?
Python SDK for inference.sh - run AI apps, build agents, and integrate with 150+ models. Package: inferencesh (pip install inferencesh). Supports sync/async,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1338 次。
如何安装 Python Sdk?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install python-sdk」即可一键安装,无需额外配置。
Python Sdk 是免费的吗?
是的,Python Sdk 完全免费(开源免费),可自由下载、安装和使用。
Python Sdk 支持哪些平台?
Python Sdk 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Python Sdk?
由 Ömer Karışman(@okaris)开发并维护,当前版本 v0.1.5。
推荐 Skills