Quickstart
Prerequisites
Section titled “Prerequisites”- Python 3.11+
- A workspace API key (open the dashboard)
- A configured API origin for your workspace
Install the CLI
Section titled “Install the CLI”python3 -m pip install schift-cliexport SCHIFT_API_KEY=sch_...export SCHIFT_API_URL=https://api.example.com/v1Create a searchable bucket
Section titled “Create a searchable bucket”Start with one document. That proves your key, API origin, upload path, and search path before you build a UI around it.
schift db create support-docsschift upload ./handbook.pdf --bucket support-docsschift search "How do I reset my password?" --bucket support-docs --top-k 5The search command returns the best matching chunks and source metadata.
Add the same bucket to an agent
Section titled “Add the same bucket to an agent”Use the TypeScript SDK when you are ready to embed the retrieval path in an app or service.
import { WorkspaceClient, Agent, RAG } from "@schift-io/sdk";
const client = new WorkspaceClient({ apiKey: process.env.SCHIFT_API_KEY });const rag = new RAG({ bucket: "support-docs" }, client.transport);
const agent = new Agent({ name: "Support Bot", instructions: "Answer questions using the knowledge base.", rag, model: "gpt-4o-mini", transport: client.transport,});WorkspaceClientconnects to the configured API originRAGwraps a document bucket (OCR, chunking, embedding, search — all managed)Agentruns a ReAct loop: receive question -> search docs -> generate answer
App starters
Section titled “App starters”New projects should start from the dashboard APM/workspace-pack flow or the SDK
shape above. create-schift remains only as a deprecated compatibility scaffold
for older generated projects.
Next steps
Section titled “Next steps”- Agent concepts — how the ReAct loop works
- Tools — add custom capabilities to your agent
- RAG — upload documents and configure search