Skip to content
Langflow

Automation and agent builders

Use Langflow with Shannon

Add Shannon as an OpenAI Compatible model provider in Langflow, switch on the ids you want, and every Language Model and Agent component can run on them.

  • Tested Nov 7, 2026
  • OpenAI Chat Completions
  • About 4 min

About Langflow

Langflow is an open-source, Python-based builder for AI apps: you wire components such as prompts, models, agents, tools and vector stores on a canvas, test them in a Playground and call each flow as an API or MCP server. Developers and teams use it to prototype chatbots, RAG apps and agents. With Shannon added as a model provider, every component that asks for a language model can use Shannon models.

What you need

A Shannon API key
Keys & usage
Base URL
https://api.shannon-ai.com/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Start Langflow with an admin login

    Langflow 1.13 no longer starts without a login: set a superuser name and password, or the container exits with "Username and password must be set". Open http://localhost:7860 and sign in.

    Docker
    docker run -d --name langflow -p 127.0.0.1:7860:7860 \
      -e LANGFLOW_SUPERUSER=admin \
      -e LANGFLOW_SUPERUSER_PASSWORD=change-me \
      -v langflow-data:/app/langflow \
      langflowai/langflow:1.13.1
  2. Add Shannon as an OpenAI Compatible provider

    Open Settings → Model Providers → OpenAI Compatible, enter the Base URL with /v1 and your key, and press Save. Langflow checks the address and reads the model list from GET /v1/models.

    OpenAI Compatible
    Base URL: https://api.shannon-ai.com/v1
    API Key:  YOUR_API_KEY
  3. Switch on the models you want

    After saving, only the first five ids under Language Models are switched on. Type the id in Search models… and switch it on. Leave the toggles under Embedding Models off: Shannon has no embeddings endpoint.

    Model
    Kimi-K3-uncensored-NVFP4
    Langflow Model Providers settings with Shannon added as an OpenAI Compatible provider and the shannon-coder-1 language model switched on
    A real setup on Langflow 1.13.1: the Shannon address saved, 86 entries found, the coding model switched on.
  4. Build a flow and chat in the Playground

    Create a flow from New Flow → Browse more… → Basic Prompting. In the Language Model component choose the Shannon id, press Ctrl+S, then open Playground and send a message. Agent components take the same model menu.

    Langflow Basic Prompting flow with Chat Input, Prompt Template, a Language Model set to the Shannon model shannon-coder-1, and Chat Output
    The Basic Prompting template on Langflow 1.13.1 with a Shannon model in the Language Model component.
  5. Read the answer in the Playground

    The Playground shows the reply with the tokens used and the time it took.

    Langflow Playground on Shannon: the question about cat colours and the reply naming black, orange and white
    A real run on Langflow 1.13.1: the reply came back in 5.9 seconds.

Check that it works

Send: Name three colours a cat can be, in one short sentence.

You should see: A one-line answer in the Playground, such as "A cat can be black, orange, or white."

Models that fit Langflow

Every id below meets what Langflow needs. The first one is the default in the snippets.

Model idContext windowMax outputImage input
Kimi-K3-uncensored-NVFP4 1,022,976 262,144 Yes
Kimi-K3-uncensored-3BIT-REAP 225,280 225,280 Yes
shannon-3 196,608 65,536 Yes
shannon-coder-1 131,072 65,536 No

Good to know

  • Langflow lists every Shannon id twice, under Language Models and Embedding Models, because the model list does not say which is which. Use only the language models; vector store flows need a separate embedding provider.
  • The Agent component calls tools in a loop, so one question can make several requests; the Basic Prompting flow makes one per message.
  • Langflow's own flow assistant (the Describe your flow… box on a new flow) also runs on a model you have switched on, and each request it makes is billed to your key.

Tips

  1. The model menus show only ids switched on under Settings → Model Providers; switch off the ids you never use and the menus stay short.
  2. Share → API access gives Python, JavaScript and cURL code for /api/v1/run/<flow id>. That call takes a Langflow API key from Settings → Langflow API Keys, not your Shannon key.
  3. Share → MCP Server exposes a flow as a tool that MCP clients, such as coding agents, can call.
  4. Words in {curly braces} in a Prompt Template become input fields on the node, so one flow can take a topic, a tone or a language from outside.
  5. Each Playground session keeps its own history; start a new session before you test a changed flow so old turns do not leak in.

Troubleshooting

SymptomCauseFix
The container exits with "Username and password must be set" Langflow 1.13 needs a superuser login at start. Set LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD and start it again.
The Shannon id is missing from the Language Model menu Only the first five discovered models are switched on. Switch it on under Settings → Model Providers → OpenAI Compatible, then pick it again.
Save fails for an address on your own network SSRF protection blocks loopback and private addresses, for example a local proxy in front of Shannon. Allow that host with LANGFLOW_SSRF_ALLOWED_HOSTS, or use https://api.shannon-ai.com/v1 directly.
401 Unauthorized The key is missing, mistyped or rotated. Copy the key again from Keys & usage; it starts with sk-.
context_length_exceeded / "prompt is too long" The conversation is longer than the model's window. Start a new chat, let the tool compact it, or pick a model with a larger window.
insufficient_quota Your balance cannot pay for the request. Top up or change plan; the request is not retried by itself.

Questions

Does Langflow work with Shannon?

Yes, as an OpenAI Compatible model provider at https://api.shannon-ai.com/v1; the models load from GET /v1/models.

Should I use the OpenAI provider or OpenAI Compatible?

OpenAI Compatible: it takes your own Base URL and discovers Shannon's ids. The OpenAI provider is meant for OpenAI's own models.

Can a Langflow agent use tools on Shannon?

Yes. Shannon models take tool calls, and Langflow marks each one with a tool label in the model list.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical