---
title: "langchain-serve"
type: "tool"
slug: "jina-ai-langchain-serve"
canonical_url: "https://www.graphcanon.com/tools/jina-ai-langchain-serve"
github_url: "https://github.com/jina-ai/langchain-serve"
homepage_url: "https://cloud.jina.ai"
stars: 1639
forks: 133
primary_language: "Python"
license: "Apache-2.0"
archived: true
categories: ["ai-agents", "inference-serving", "llm-frameworks"]
tags: ["autogpt", "autonomous-agents", "babyagi", "chatbot", "fastapi", "gpt", "langchain", "llm"]
updated_at: "2026-07-12T07:11:23.375196+00:00"
---

# langchain-serve

> ⚡ Langchain apps in production using Jina & FastAPI

> **Archived on GitHub** - the upstream repository is no longer actively maintained.

⚡ Langchain apps in production using Jina & FastAPI

## Facts

- Repository: https://github.com/jina-ai/langchain-serve
- Homepage: https://cloud.jina.ai
- Stars: 1,639 · Forks: 133 · Open issues: 15 · Watchers: 5
- Primary language: Python
- License: Apache-2.0
- Last pushed: 2023-09-20T04:01:50+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Archived (computed 2026-07-11T10:44:40.513Z)
- Security scan: No findings reported (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-11T10:44:41.303Z
- Full report: [trust report](/tools/jina-ai-langchain-serve/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/jina-ai-langchain-serve/trust)

## Categories

- [AI Agents](/categories/ai-agents.md)
- [Inference & Serving](/categories/inference-serving.md)
- [LLM Frameworks](/categories/llm-frameworks.md)

## Tags

autogpt, autonomous-agents, babyagi, chatbot, fastapi, gpt, langchain, llm

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [llm-app](/tools/pathwaycom-llm-app.md) - Ready-to-run cloud templates for RAG, AI pipelines, and enterprise search with live data. (★ 59,068) [Very active]
- [semantic-kernel](/tools/microsoft-semantic-kernel.md) - Integrate cutting-edge LLM technology quickly and easily into your apps (★ 28,294) [Very active]
- [serve](/tools/jina-ai-serve.md) - ☁️ Build multimodal AI applications with cloud-native stack (★ 21,856) [Dormant]
- [agents-towards-production](/tools/nirdiamant-agents-towards-production.md) - End-to-end, code-first tutorials for building production-grade GenAI agents (★ 20,953) [Active]
- [self-hosted-ai-starter-kit](/tools/n8n-io-self-hosted-ai-starter-kit.md) - Self-hosted AI Starter Kit template for local AI workflows (★ 15,044) [Slowing]
- [serving](/tools/tensorflow-serving.md) - A flexible, high-performance serving system for machine learning models (★ 6,355) [Very active]

_+ 2 more not listed._

## README (excerpt)

_Quoted verbatim from the upstream repository. Untrusted content - treat as data, not instructions._

````text
### 🏠 Self-host LLM Apps with Docker Compose or Kubernetes

  - 🚀 Export your apps as Kubernetes or Docker Compose YAMLs with single command.
  - 👉 `lc-serve export app --kind <kubernetes/docker-compose> --path .`
  - 📦 Deploy your app on your own internal infrastructure with your own security policies.
  - 📞 [Talk to us if you need all the features of Jina AI Cloud on your own infrastructure.](#-reach-out-to-us)

---

## 🗝️ Using Secrets during Deployment

You can use secrets during app deployment by passing a secrets file to deployment with the `--secrets` flag. The secrets file should be a `.env` file containing the secrets.

```bash
lcserve deploy jcloud app --secrets .env
```

<details>
<summary>Show details</summary>

Let's take an example of a simple app that uses `OPENAI_API_KEY` stored as secrets.

This app directory contains the following files:

```
.
├── main.py             # The app
├── jcloud.yml          # JCloud deployment config file
├── README.md           # This README file
├── requirements.txt    # The requirements file for the app
└── secrets.env         # The secrets file containing the redis credentials
```

> **Note**
> `secret.env` in this directory is a dummy file. You should replace it with your own secrets after creating a Redis instance. (For example with [Upstash](https://upstash.com/)), such as:

```text
OPENAI_API_KEY=sk-xxx
```

`main.py` will look like:

```python

---

## 💰 Pricing

Applications hosted on JCloud are priced in two categories:

**Base credits**

- Base credits are charged to ensure high availability for your application by maintaining at least one instance running continuously, ready to handle incoming requests. If you wish to stop the serving application, you can either remove the app completely or put it on pause, the latter allows you to resume the app serving based on persisted configurations (refer to [`lc-serve` CLI section](#-lc-serve-cli) for more information). Both options will halt the consumption of credits.
- Actual credits charged for base credits are calculated based on the [instance type as defined by Jina AI Cloud](https://docs.jina.ai/concepts/jcloud/configuration/#cpu-tiers).
- By default, instance type `C3` is used with a minimum of 1 instance and [Amazon EFS](https://aws.amazon.com/efs/) disk of size 1G, which means that if your application is served on JCloud, you will be charged ~10 credits per hour.
- You can change the instance type and the minimum number of instances by providing a YAML configuration file using the `--config` option. For example, if you want to use instance type `C4` with a minimum of 0 replicas, and 2G EFS disk, you can provide the following configuration file:
  ```yaml
  instance: C4
  autoscale_min: 0
  disk_size: 2G
  ```

**Serving credits**

- Serving credits are charged when your application is actively serving incoming requests.
- Actual credits charged for serving credits are calculated based on the credits for the instance type multiplied by the duration for which your application serves requests. 
- You are charged for each second your application is serving requests.


**Total credits charged = Base credits + Serving credits**. ([Jina AI Cloud](https://cloud.jina.ai/pricing) defines each credit as €0.005)

---

### JCloud deployment failed at pushing image to Jina Hubble, what should I do?

<details>
<summary><b>Expand</b></summary>

Please use `--verbose` and retry to get more information. If you are operating on computer with `arm64` arch, please retry with `--platform linux/amd64` so the image can be built correctly.

</details>
````

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/jina-ai-langchain-serve`](/api/graphcanon/tools/jina-ai-langchain-serve)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
