{"id":15012880,"url":"https://github.com/lavague-ai/lavague","last_synced_at":"2025-05-14T12:02:45.104Z","repository":{"id":224828513,"uuid":"763795053","full_name":"lavague-ai/LaVague","owner":"lavague-ai","description":"Large Action Model framework to develop AI Web Agents","archived":false,"fork":false,"pushed_at":"2024-11-17T07:13:25.000Z","size":100485,"stargazers_count":5808,"open_issues_count":89,"forks_count":528,"subscribers_count":54,"default_branch":"main","last_synced_at":"2025-01-17T09:47:07.828Z","etag":null,"topics":["ai","browser","large-action-model","llm","oss","rag"],"latest_commit_sha":null,"homepage":"https://docs.lavague.ai/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lavague-ai.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-02-26T23:40:23.000Z","updated_at":"2025-01-17T02:03:33.000Z","dependencies_parsed_at":"2024-03-02T02:47:42.986Z","dependency_job_id":"05b49b16-c025-4051-9c3c-ed2a58fcbc4e","html_url":"https://github.com/lavague-ai/LaVague","commit_stats":{"total_commits":686,"total_committers":32,"mean_commits":21.4375,"dds":0.80466472303207,"last_synced_commit":"7216215e2c0aeed3d67900ae25fbf184d9895e70"},"previous_names":["dhuynh95/lavague","lavague-ai/lavague"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavague-ai%2FLaVague","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavague-ai%2FLaVague/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavague-ai%2FLaVague/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavague-ai%2FLaVague/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lavague-ai","download_url":"https://codeload.github.com/lavague-ai/LaVague/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250278374,"owners_count":21404191,"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","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":["ai","browser","large-action-model","llm","oss","rag"],"created_at":"2024-09-24T19:43:22.121Z","updated_at":"2025-04-22T16:37:13.005Z","avatar_url":"https://github.com/lavague-ai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/lavague-ai/LaVague/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/lavague-ai/LaVague.svg?style=for-the-badge\" alt=\"Stargazers\"\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://github.com/lavague-ai/LaVague/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/lavague-ai/LaVague.svg?style=for-the-badge\" alt=\"Issues\"\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://github.com/lavague-ai/LaVague/network/members\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/lavague-ai/LaVague.svg?style=for-the-badge\" alt=\"Forks\"\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://github.com/lavague-ai/LaVague/graphs/contributors\"\u003e\u003cimg src=\"https://img.shields.io/github/contributors/lavague-ai/LaVague.svg?style=for-the-badge\" alt=\"Contributors\"\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\u003c/br\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n  \u003cimg src=\"docs/assets/logo.png\" width=140px: alt=\"LaVague Logo\"\u003e\r\n  \u003ch1\u003eWelcome to LaVague\u003c/h1\u003e\r\n\r\n\u003ch4 align=\"center\"\u003e\r\n \u003ca href=\"https://discord.gg/SDxn9KpqX9\" target=\"_blank\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/Discord-5865F2?style=for-the-badge\u0026logo=discord\u0026logoColor=white\" height='35px' alt=\"Join our Discord server!\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://docs.lavague.ai/en/latest/\"\u003e\u003cimg src=\"https://img.shields.io/badge/📄-docs-000000?style=for-the-badge\u0026colorA=09c\u0026colorB=555\" height='35px' alt=\"Docs\"\u003e\u003c/a\u003e\r\n\u003c/h4\u003e\r\n  \u003cp\u003eA Large Action Model framework for developing AI Web Agents\r\n\u003c/p\u003e\r\n\u003ch1\u003e\u003c/h1\u003e\r\n\u003c/div\u003e\r\n\r\n## LaVague: Web Agent framework for builders\r\n\r\nLaVague is an open-source framework designed for developers who want to create AI Web Agents to automate processes for their end users.\r\n\r\nOur Web Agents can take an objective, such as \"Print installation steps for Hugging Face's Diffusers library,\" and generate and perform the actions required to achieve the objective.\r\n\r\nLaVague Agents are made up of:\r\n\r\n- A World Model that takes an objective and the current state (aka the current web page) and outputs an appropriate set of instructions.\r\n- An Action Engine which “compiles” these instructions into action code, e.g., Selenium or Playwright \u0026 executes them\r\n\r\n\r\n### LaVague QA: Dedicated tooling for QA Engineers\r\n**🌊 Built on LaVague**\r\n\r\nLaVague QA is a tool tailored for QA engineers leveraging our framework. \r\n\r\nIt allows you to automate test writing by turning Gherkin specs into easy-to-integrate tests. LaVague QA is a project leveraging the LaVague framework behind the scenes to make web testing 10x more efficient.\r\n\r\nFor detailed information and setup instructions, visit the [LaVague QA documentation](https://docs.lavague.ai/en/latest/docs/lavague-qa/quick-tour/).\r\n\r\n## 🚀 Getting Started\r\n\r\n### Demo\r\n\r\nHere is an example of how LaVague can take multiple steps to achieve the objective of \"Go on the quicktour of PEFT\":\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"./docs/assets/demo_agent_hf.gif\" alt=\"Demo for agent\"\u003e\r\n\u003c/p\u003e\r\n\r\n### Hands-on \r\n\r\nYou can do this with the following steps:\r\n\r\n1. Download LaVague with:\r\n\r\n```bash\r\npip install lavague\r\n```\r\n2. Use our framework to build a Web Agent and implement the objective:\r\n\r\n```python\r\nfrom lavague.core import  WorldModel, ActionEngine\r\nfrom lavague.core.agents import WebAgent\r\nfrom lavague.drivers.selenium import SeleniumDriver\r\n\r\nselenium_driver = SeleniumDriver(headless=False)\r\nworld_model = WorldModel()\r\naction_engine = ActionEngine(selenium_driver)\r\nagent = WebAgent(world_model, action_engine)\r\nagent.get(\"https://huggingface.co/docs\")\r\nagent.run(\"Go on the quicktour of PEFT\")\r\n\r\n# Launch Gradio Agent Demo\r\nagent.demo(\"Go on the quicktour of PEFT\")\r\n```\r\n\r\nFor more information on this example and how to use LaVague, see our [quick-tour](https://docs.lavague.ai/en/latest/docs/get-started/quick-tour/).\r\n\r\n\u003e Note, these examples use our default OpenAI API configuration and you will need to set the OPENAI_API_KEY variable in your local environment with a valid API key for these to work.\r\n\r\nFor an end-to-end example of LaVague in a Google Colab, see our [quick-tour notebook](https://colab.research.google.com/github/lavague-ai/lavague/blob/main/docs/docs/get-started/quick-tour-notebook/quick-tour.ipynb)\r\n\r\n## Key Features\r\n\r\n- ✅ [Built-in Contexts](https://docs.lavague.ai/en/latest/docs/get-started/customization/) (aka. configurations)\r\n- ✅ [Customizable configuration](https://docs.lavague.ai/en/latest/docs/get-started/customization/)\r\n- ✅ [A test runner](https://docs.lavague.ai/en/latest/docs/get-started/testing/) for testing and benchmarking the performance of LaVague\r\n- ✅ A [Token Counter](https://docs.lavague.ai/en/latest/docs/get-started/token-usage/) for estimating token usage and costs\r\n- ✅ [Logging tools](https://docs.lavague.ai/en/latest/docs/get-started/customization/)\r\n- ✅ An optional, interactive [Gradio interface](https://docs.lavague.ai/en/latest/docs/get-started/gradio/)\r\n- ✅ [Debugging tools](https://docs.lavague.ai/en/latest/docs/get-started/customization/)\r\n- ✅ [A Chrome Extension](https://docs.lavague.ai/en/latest/docs/get-started/docs-chrome/)\r\n\r\n## Supported Drivers\r\n\r\nWe support three Driver options:\r\n\r\n- A Selenium Webdriver\r\n- A Playwright webdriver\r\n- A Chrome extension driver\r\n\r\nNote that not all drivers support all agent features:\r\n\r\n| Feature                  | Selenium  | Playwright       | Chrome Extension                     |\r\n|--------------------------|-----------|------------------|--------------------------------------|\r\n| Headless agents    | ✅ | ⏳ | N/A |\r\n| Handle iframes     | ✅ | ✅ | ❌ |\r\n| Open several tabs  | ✅ | ⏳ | ✅  |\r\n| Highlight elements | ✅ | ✅  | ✅ |\r\n\r\n\r\n✅ supported  \r\n⏳ coming soon  \r\n❌ not supported \r\n\r\n## 🔎 Support\r\n\r\nIf you're experiencing any issues getting started with LaVague, you can:\r\n\r\n- Check out our [troubleshooting guide](https://docs.lavague.ai/en/latest/docs/get-started/troubleshoot/) where we list information and fixes for common issues.\r\n- Opening a [GitHub issue](https://github.com/lavague-ai/LaVague/issues) describing your issue\r\n- Messaging us in the '#support channel' on our [Discord](https://discord.gg/SDxn9KpqX9\") server\r\n\r\n## 🙋 Contributing\r\n\r\nWe would love your help and support on our quest to build a robust and reliable Large Action Model for web automation.\r\n\r\nTo avoid having multiple people working on the same things \u0026 being unable to merge your work, we have outlined the following contribution process:\r\n\r\n1) 📢 We outline tasks using [`GitHub issues`](https://github.com/lavague-ai/LaVague/issues): we recommend checking out issues with the [`help-wanted`](https:/github.com/lavague-ai/LaVague/labels/help%20wanted) \u0026 [`good first issue`](https://github.com/lavague-ai/LaVague/labels/good%20first%20issue) labels\r\n2) 🙋‍♀️ If you are interested in working on one of these tasks, comment on the issue! \r\n3) 🤝 We will discuss with you and assign you the task with a [`community assigned`](https://github.com/lavague-ai/LaVague/labels/community-assigned) label \r\n4) 💬 We will then be available to discuss this task with you\r\n5) ⬆️ You should submit your work as a PR\r\n6) ✅ We will review \u0026 merge your code or request changes/give feedback\r\n\r\nPlease check out our [`contributing guide`](https://docs.lavague.ai/en/latest/docs/contributing/contributing/) for more details.\r\n\r\n## 🗺️ Roadmap\r\n\r\nTo keep up to date with our project backlog [here](https://github.com/orgs/lavague-ai/projects/1/views/2).\r\n\r\n## 💰 How much does it cost to run an agent?\r\n\r\nLaVague uses LLMs, (by default OpenAI's `gpt4-o` but this is completely customizable), under the hood.\r\n\r\nThe cost of these LLM calls depends on: \r\n- the models chosen to run a given agent\r\n- the complexity of the objective\r\n- the website you're interacting with. \r\n\r\nPlease see our [dedicated documentation on token counting and cost estimations](https://docs.lavague.ai/en/latest/docs/get-started/token-usage/) to learn how you can track all tokens and estimate costs for running your agents.\r\n\r\n## 📈 Data collection\n\nWe want to build a dataset that can be used by the AI community to build better Large Action Models for better Web Agents. You can see our work so far on building community datasets on our [BigAction HuggingFace page](https://huggingface.co/BigAction).\n\nThis is why LaVague collects the following user data telemetry by default:\n\n- Version of LaVague installed\n- Code / List of actions generated for each web action step\n- The past actions\n- The \"observations\" (method used to check the current page)\n- LLM used (i.e GPT4)\n- Multi modal LLM used (i.e GPT4)\n- Randomly generated anonymous user ID\n- Whether you are using a CLI command (lavague-qa for example), the Gradio demo or our library directly.\n- The objective used \n- The chain of thoughts on the agent\n- The interaction zone on the page (bounding box)\n- The viewport size of your browser\n- The current step\n- The instruction(s) generated \u0026 the current engine used\n- The token costs \u0026 usages\n- The URL you performed an action on\n- Whether the action failed or succeeded\n- The extra used data specified\n- Error message, where relevant\n- The source nodes (chunks of HTML code retrieved from the web page to perform this action)\n\n**Be careful to NEVER includes personal information in your objectives and the extra user data. If you intend to includes personal information in your objectives/extra user data, it is HIGHLY recommended to turn off the telemetry.**\r\n\r\n### 🚫 Turn off all telemetry\r\n\r\nIf you want to turn off all telemetry, you should set the `LAVAGUE_TELEMETRY` environment variable to `\"NONE\"`.\r\n\r\nFor guidance on how to set your `LAVAGUE_TELEMTRY` environment variable, see our guide [here](https://docs.lavague.ai/en/latest/docs/get-started/FAQs/#how-can-i-set-environment-variables).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavague-ai%2Flavague","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flavague-ai%2Flavague","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavague-ai%2Flavague/lists"}