Skip to main content

Get started

This path takes you from a new project to a Python agent served by the AgentFlow API, tested in the hosted playground, and called from TypeScript.

It intentionally avoids advanced concepts. The goal is one working app first.

Golden path

StepPageOutcome
1What is AgentFlow?Understand what AgentFlow provides before installing it.
2InstallationInstall the Python library, CLI, and TypeScript client.
3First Python AgentRun a minimal graph locally.
4Expose with APIServe the graph with agentflow api.
5Connect ClientCall the API with AgentFlowClient.
6Open PlaygroundStart the API and hosted playground with agentflow play.

Prerequisites

You need:

  • Python 3.12 or newer.
  • Node.js 20 or newer if you want to run the TypeScript client example.
  • A terminal where you can install Python and npm packages.

The first local graph example does not call an LLM, so you can verify the framework before adding provider keys.

How the pieces connect

The Python library owns the graph runtime. The CLI creates and serves a project around that graph. The TypeScript client and hosted playground both talk to the same local API server.

Commands you will use

pip install 10xscale-agentflow 10xscale-agentflow-cli
npm install @10xscale/agentflow-client
agentflow init
agentflow api
agentflow play

What you will have

By the end, you will have:

  • A local graph/react.py file that exports app.
  • An agentflow.json file that points the API to that graph.
  • A running API server on http://127.0.0.1:8000.
  • A hosted playground session opened by agentflow play.
  • A minimal TypeScript AgentFlowClient call.

Next step

Start with What is AgentFlow?.