{"id":19154894,"url":"https://github.com/bastienpo/fastagent","last_synced_at":"2026-04-30T09:32:44.561Z","repository":{"id":259381742,"uuid":"871787536","full_name":"bastienpo/fastagent","owner":"bastienpo","description":"A tool making it easy to go from prototype to production","archived":false,"fork":false,"pushed_at":"2024-11-18T03:02:53.000Z","size":278,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T15:57:13.842Z","etag":null,"topics":["agents","chatbot","fastapi","genai","langchain"],"latest_commit_sha":null,"homepage":"https://fastagent.gitbook.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bastienpo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-12T23:52:24.000Z","updated_at":"2024-11-18T03:02:57.000Z","dependencies_parsed_at":"2024-10-28T23:34:25.579Z","dependency_job_id":null,"html_url":"https://github.com/bastienpo/fastagent","commit_stats":null,"previous_names":["bastienpo/heypi","bastienpo/ship-agent","bastienpo/fastagent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bastienpo/fastagent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastienpo%2Ffastagent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastienpo%2Ffastagent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastienpo%2Ffastagent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastienpo%2Ffastagent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bastienpo","download_url":"https://codeload.github.com/bastienpo/fastagent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastienpo%2Ffastagent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","chatbot","fastapi","genai","langchain"],"created_at":"2024-11-09T08:28:44.566Z","updated_at":"2026-04-30T09:32:44.512Z","avatar_url":"https://github.com/bastienpo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# fastagent\n\nfastagent: a tool making it easy to ship your agent to production\n\n\u003ch3\u003e\n\n[Documentation](https://fastagent.gitbook.io)\n\n![GitHub Repo stars](https://img.shields.io/github/stars/bastienpo/fastagent?style=social)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/bastienpo/fastagent/ci.yml)\n\n\n\u003c/h3\u003e\n\n\u003c/div\u003e\n\n---\n\n\u003e [!Warning]\n\u003e FastAgent is currently under **active development** and in alpha stage. It currently lacks SSL and CORS security features, as well as comprehensive testing needed for production deployment.\n\n## Installation\n\nYou can install the project using pip: (Available on PyPI soon)\n\n```bash\npip install git+https://github.com/bastienpo/fastagent.git\n```\n\n## How to use the project\n\nFirst, create a simple LangChain application.\n\nLet's create an app.py file with the simplest langchain runnable you can make, consisting of just a large language model.\n\n```python\n# pip install -qU langchain-mistralai and requires MISTRAL_API_KEY in to be set\nfrom langchain_mistralai import ChatMistralAI\n\nchain = ChatMistralAI(model=\"ministral-3b-latest\")\n```\n\nThen, you need to initialize a fastagent configuration file (fastagent.toml) using the following command:\n\n```bash\nfastagent init\n```\nYou will need to update the app field in the project section to match the path of your application in the form:\n\n`\u003cmodule_path\u003e:\u003cmodule_attribute\u003e` in you case it would be `myapplication.app:chain`\n\nIf you decided to use a database in your configuration, you can use the `setup` command to create the tables and setup the database.\n\n```bash\nfastagent setup\n```\n\nWhen you are ready to develop or ship, you can start the production server:\n\n```bash\nfastagent dev # fastagent run\n```\n\nThe difference between the `dev` and `run` command is that `dev` will reload the server on code changes and log to the console, while `run` will build a docker image and serve the application.\n\n## Features\n\nThis is the current roadmap for the project:\n\n- The project allows to setup a simple server for your agent. It only support langchain and postgresql to store your conversations and authentication data.\n- It allows to setup a simple token based authentication and authorization.\n- You can configure different middlewares CORS, Authorization and Rate limiting.\n\n## What's next?\n\n\u003e [!Note]\n\u003e This project is still under active development and design is subject to change. I'm doing it only as a personal project because I was curious about how to ship an agent to production. Feel free to contribute or give feedback. I'm really open to any suggestion.\n\nNear future:\n- Add end-to-end testing of the project for langchain and langgraph.\n- Add a permission system.\n- Add stateless authentication.\n- Add support for more databases (SQLite in particular).\n\n\nLong term:\n- Simplify the integration of monitoring and observability tools (Langfuse, Phoenix)\n- Add support for Dspy and other frameworks.\n\n## Resources\n\nSome resources about the dependencies used for the project and thanks to the maintainers of the projects for their work.\n\n- [FastAPI](https://fastapi.tiangolo.com/)\n- [Granian](https://granian.dev/)\n- [Langserve](https://github.com/Lightning-AI/LitServe)\n\nThe project is inspired by [LitServe](https://github.com/Lightning-AI/LitServe).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastienpo%2Ffastagent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbastienpo%2Ffastagent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastienpo%2Ffastagent/lists"}