{"id":21012651,"url":"https://github.com/developersdigest/autogpt-langchain-nodejs","last_synced_at":"2026-02-28T07:06:24.677Z","repository":{"id":158389641,"uuid":"633994908","full_name":"developersdigest/AutoGPT-Langchain-NodeJS","owner":"developersdigest","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-12T22:36:49.000Z","size":13,"stargazers_count":18,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-15T04:33:31.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developersdigest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-28T19:06:58.000Z","updated_at":"2024-10-04T06:39:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"323702ae-8fde-451e-b196-568e950cb35b","html_url":"https://github.com/developersdigest/AutoGPT-Langchain-NodeJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developersdigest/AutoGPT-Langchain-NodeJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FAutoGPT-Langchain-NodeJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FAutoGPT-Langchain-NodeJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FAutoGPT-Langchain-NodeJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FAutoGPT-Langchain-NodeJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developersdigest","download_url":"https://codeload.github.com/developersdigest/AutoGPT-Langchain-NodeJS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FAutoGPT-Langchain-NodeJS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268035826,"owners_count":24185103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":[],"created_at":"2024-11-19T09:38:07.177Z","updated_at":"2025-10-16T18:36:39.067Z","avatar_url":"https://github.com/developersdigest.png","language":"JavaScript","readme":"# AutoGPT with Langchain in Node.js\n\nThis repository contains a Node.js boilerplate for getting started with AutoGPT using Langchain. The project demonstrates how to set up and use the experimental AutoGPT implementation in a Node.js environment. It provides a foundation for building applications that leverage the power of generative language models and external APIs to create dynamic and interactive content.\n\n## Prerequisites\n\n- Node.js version 18 or higher\n- OpenAI API key (obtain from https://platform.openai.com/account/api-keys)\n- SERP API key (obtain from https://serpapi.com/)\n\n## Getting Started\n\n1. Clone the repository:\n   \n   git clone https://github.com/your-username/autogpt-langchain-nodejs.git\n   cd autogpt-langchain-nodejs\n \n\n2. Install dependencies:\n \n   npm install langchain hnswlib dotenv\n \n\n3. Create a `.env` file in the root directory and add your API keys:\n \n   OPENAI_API_KEY=your_openai_api_key\n   SERPAPI_API_KEY=your_serp_api_key\n\n\n4. Run the `index.js` script to see AutoGPT in action:\n\n   node index.js\n  \n\n## How It Works\n\nThe `index.js` script performs the following steps:\n\n- Imports necessary modules from Langchain, including AutoGPT, ReadFileTool, WriteFileTool, SerpAPI, NodeFileStore, HNSWLib, OpenAIEmbeddings, and ChatOpenAI.\n- Configures dotenv to manage environment variables.\n- Instantiates NodeFileStore, tools for file operations and SERP API, and HNSWLib with OpenAI embeddings.\n- Creates an AutoGPT instance with the ChatOpenAI model, tools, and memory.\n- Demonstrates how to use AutoGPT to perform tasks and generate content.\n\n## Customization\n\nThis boilerplate provides a starting point for your own projects. You can customize the code to create a wide range of applications, such as generating dynamic web content, creating interactive chatbots, and more. Feel free to experiment and explore the capabilities of AutoGPT and Langchain!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersdigest%2Fautogpt-langchain-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopersdigest%2Fautogpt-langchain-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersdigest%2Fautogpt-langchain-nodejs/lists"}