Stacklink Python SDK
Stacklink supplies executable, governed tools to an agent harness. The selected harness owns the model call, tool loop, and final answer.
Install the public package with the harness extra you use:
uv add 'stacklink-sdk[openai-agents]'
or:
uv add 'stacklink-sdk[claude-agent]'
The complete guides and certified recipes live at docs.stacklink.in. PyPI is the package delivery system, not the primary documentation surface. Stacklink does not display registry download badges in its product or documentation.
Certified agent harnesses
| Harness | Stacklink adapter |
|---|---|
| OpenAI Agents SDK | create_stacklink_openai_agents_tools(session) |
| Claude Agent SDK | create_stacklink_claude_agent_tool_config(session) |
Both start with one explicit Stacklink session:
import os
from stacklink import Stacklink
stacklink = Stacklink(
api_key=os.environ['STACKLINK_API_KEY'],
base_url=os.getenv('STACKLINK_BASE_URL', 'https://api.stacklink.in'),
)
session = stacklink.sessions.create_bound({
'externalTenantId': 'acme',
'externalUserId': 'user_123',
'metaTools': {'surface': 'connector'},
})
try:
# Pass the selected Stacklink adapter output to your agent harness.
pass
finally:
session.close()
The complete OpenAI Agents and Claude Agent examples shown by the Stacklink Overview are generated from the executable files under examples/sdk/. The dashboard, documentation, and certification tests all read those same files.
The raw OpenAI with_stacklink_memory helper remains a separate Memory integration. It is not the agent-tool integration and is not part of basic Overview onboarding.
Environment variables are STACKLINK_API_KEY, optional STACKLINK_BASE_URL, and the model-provider credentials required by the selected harness. The SDK is proprietary and is provided under the applicable Stacklink agreement.
Release files for stacklink-sdk 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stacklink_sdk-0.2.0.tar.gz | 37.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stacklink_sdk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.9 kB
Release files / stacklink_sdk-0.2.0.tar.gz
| Download URL | stacklink_sdk-0.2.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
128edcbe52a89c7f58ce4ecbc60df5c0cfd51b51cac4ad9fdd4acdbd1cd6b010
|
|
BLAKE2b-256 checksum How to use checksums |
79e38a93fc08b9b91d261bb0693a88f28b9f6fa08cde5d45f0eb1f9a65129788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / stacklink_sdk-0.2.0-py3-none-any.whl
| Download URL | stacklink_sdk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79aec7c84e7b7cc2dfcceffba744eb5925a2e30aa5323d27dba021df6417cfb7
|
|
BLAKE2b-256 checksum How to use checksums |
b541c667c919db26bed1f4b54a589aed4f7f408a47da1a89bb84f21e17c79dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|