explaingit

locoremind/locoagent

Analysis updated 2026-05-18

181TypeScriptAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

An AI agent that operates a social media account through real browser automation using your logged-in Chrome session.

Mindmap

mindmap
  root((LocoAgent))
    What it does
      AI social media agent
      Real browser automation
      Chrome CDP control
    Tech stack
      TypeScript
      Bun
      agent-browser CLI
    Use cases
      Auto reply and like
      Scheduled workflows
      Custom platform skills
    Audience
      Developers
    Setup
      Bun and Node
      Chrome profile copy
      LLM provider key

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically like, reply to, and follow accounts on X.com based on natural language instructions.

USE CASE 2

Run a scheduled workflow that fetches HuggingFace papers and posts them to X.com daily.

USE CASE 3

Search a platform and generate AI replies as a background daemon process.

USE CASE 4

Add support for a new social platform by writing a skill playbook file.

What is it built with?

TypeScriptBunChrome DevTools ProtocolOpenAI APIAnthropic API

How does it compare?

locoremind/locoagentwindowsmarketlab/polymarket-arbitrage-bot-v2binghe1980/ai-canvas
Stars181181182
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardhardmoderate
Complexity4/54/52/5
Audiencedeveloperdeveloperdesigner

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires Bun, the separate agent-browser CLI, a copied Chrome profile connected via CDP, and an LLM provider API key.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

LocoAgent is a TypeScript tool that lets an AI model operate a social media account through a real, automated Chrome browser rather than through an official API. It logs into a platform using your actual Chrome profile and cookies, then uses a language model to decide what to do next, such as liking a post, replying, following an account, or publishing new content, and carries out that action by clicking and typing inside the browser the same way a person would. According to the README, the project works with any OpenAI compatible API, including OpenRouter, DeepSeek, and locally run models through Ollama or LM Studio, as well as Anthropic's API directly, AWS Bedrock, and Google Vertex AI. It uses a separate command line tool called agent-browser to connect to Chrome over the Chrome DevTools Protocol, take a snapshot of clickable elements on a page, and then click or type into specific elements by reference. For X.com specifically, the README describes a bundled "skill" file containing over 30 documented operations that the agent loads into its context so it can complete multi step tasks like browsing a timeline and replying to several posts in one pass. Beyond the interactive agent, LocoAgent includes a workflow engine for running fixed, scripted automation pipelines without the language model involved, such as fetching daily papers from HuggingFace and posting them to X.com on a schedule, or searching a platform and generating AI replies as a background daemon process. New workflows are added as a JSON definition file paired with a TypeScript executor script. Setup requires the Bun runtime, Node.js 18 or newer, Git, and the separate agent-browser CLI, configured through a .env file with the desired model provider and API key. The project is licensed under the MIT License.

Copy-paste prompts

Prompt 1
Walk me through setting up LocoAgent's .env file with an OpenRouter API key.
Prompt 2
Explain what the agent-browser CLI's snapshot and click commands actually do.
Prompt 3
Help me write a new SKILL.md playbook for a platform this doesn't support yet.
Prompt 4
What are the risks of automating a real social media account with an AI agent like this?

Frequently asked questions

What is locoagent?

An AI agent that operates a social media account through real browser automation using your logged-in Chrome session.

What language is locoagent written in?

Mainly TypeScript. The stack also includes TypeScript, Bun, Chrome DevTools Protocol.

What license does locoagent use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is locoagent to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is locoagent for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.