Skip to main content
Prerequisites: Python 3.10+ and a VectorShift account. If you haven’t installed yet, see Installation.

Run your first pipeline

Pick where you’re writing code — the pipeline you build is identical in each, and shows up in the platform editor either way.
1

Install the SDK

2

Set your API key

Generate one at Account → API Keys, then export it before you run any Python:
The SDK reads this variable at import time, so it must be set before import vectorshift. Setting it afterward — or using a wrong prefix — surfaces as a 401. To set the key in code instead, assign vectorshift.api_key = "sk_..." before your first API call.
3

Build, save, and run

Paste this into a file (hello.py) and run it.
4

See it in the editor

Open the platform — your new pipeline is editable in the visual editor, identical to one built there.
For the best developer experience, enable the mypy plugin. It catches wrong field names on node builders, mismatched types between wired nodes, and agent tools missing required inputs — at edit time, before you save. Drop a mypy.ini with plugins = vectorshift.mypy_plugin and most editors (VS Code, Cursor, PyCharm, Zed) light up SDK-aware errors inline as you type.

Now try

Stream tokens

Swap run for stream and yield tokens as they arrive.

Run in the background

start() returns immediately; poll or stream for results.

Turn it into an agent

Add tools and multi-turn conversation.

What’s next

Concepts

Pipeline vs Agent vs Session vs Knowledge Base.

Pipeline reference

Every public method.

Building with AI

Want ChatGPT or Claude to build a pipeline, agent, knowledge base, or table for you? Paste this prompt first, then describe what you want — it points the model at the SDK docs and llms.txt so it follows the documented patterns.