Getting started
Weftra is a visual builder for agent and RAG flows. It imports and exports flows as JSON, runs them on a Rust engine, and serves them over a REST API. Everything is stored in one SQLite file.
Weftra is pre-alpha. There are no release packages yet, so you build it from source.
What you need
Section titled “What you need”- A Rust toolchain. The workspace declares Rust 1.85 as its minimum. CI builds with 1.100.
- Node.js and npm, to build the web studio. The Docker build uses Node 22.
- Git.
You do not need Python.
Build and run
Section titled “Build and run”git clone https://github.com/Liceron/weftra && cd weftra(cd weftra/web && npm ci && npm run build)cargo run --release -p weftra-server --bin weftra -- --static-dir weftra/web/dist --starters-dir weftra/fixtures/starters--static-dirserves the studio you just built. The server does not embed the web assets in the binary.--starters-dirloads the 27 starter flows as templates.
The server listens on 127.0.0.1:7860. Open http://localhost:7860.
What happens on first start
Section titled “What happens on first start”- On a loopback address, auto-login is on. You act as the superuser and there is no login screen.
- Data goes to
~/.weftra/. That folder holds the databaseweftra.db, uploadedfiles/, andsecret.key, which encrypts stored credentials and signs session tokens. Use--data-dirto put all three somewhere else. - The full built-in component catalog is registered (the default
builtin-componentsfeature).
Try it without API keys
Section titled “Try it without API keys”Add --fake-models to route every model and embedding component through Weftra’s offline fake provider. This is useful for trying templates and checking wiring before you add real keys.
cargo run --release -p weftra-server --bin weftra -- --static-dir weftra/web/dist --starters-dir weftra/fixtures/starters --fake-modelsYour first flow from a template
Section titled “Your first flow from a template”- On the home page, under Start something new, pick a template card. Show all 27 templates expands the list. You can also start from a Blank flow, or use Import Langflow JSON.
- The flow opens in the editor. Components come from the palette on the left, and the canvas is in the middle.
- If a model component needs an API key, store the key as a variable first. Go to Variables & API keys in the home navigation and add a variable of type Credential. Name it as the field expects, for example
OPENAI_API_KEY. In the component, use the field’s Use a global variable picker. Credential values are encrypted and never shown again. - Press Run in the top bar, or Ctrl+Enter.
Each component shows a status chip: queued, running, the server-measured duration when it finishes, or an error. Click a chip to see that component’s output next to it.
Chat in the Playground
Section titled “Chat in the Playground”Open Playground in the top bar. The panel sends your message to the flow’s Chat Input and streams the reply back. The flow needs a Chat Input component.
Sessions are listed at the top of the panel. Default session uses the flow id. The + button starts a new session. See Playground and sessions.
Read the run log
Section titled “Read the run log”Open Run log in the top bar. It opens by itself on every run. The Run tab is a waterfall with one bar per component, positioned by the server’s own timestamps. Outputs shows what the selected component produced. Logs shows errors and log lines. See Running and debugging.
Call the flow from code
Section titled “Call the flow from code”The API button in the editor shows curl, Python and JavaScript snippets for your flow. The curl version looks like this:
curl -X POST 'http://localhost:7860/api/v1/run/<flow id>' \ -H 'Content-Type: application/json' \ -d '{"input_value": "Hello", "input_type": "chat", "output_type": "chat", "session_id": "my-session"}'Next steps
Section titled “Next steps”- Import existing flows: import JSON or ZIP flow files, including Langflow JSON exports.
- Configuration: every flag and environment variable.
- Deployment: running Weftra on a network, and the Docker setup.
Weftra is open source under Apache-2.0. Made by Liceron.