GitAccess is a tool that enables LLM models to connect to a GitHub repository to fetch its contents. This way, you can query the model about the current state of the project and always stay up to date.
- Author: ErrorRExorY/CptExorY
- Website: pascal-frerks.de
- GitHub Repo: GitAccess on GitHub
- Required OpenWebUI Version: 0.6.0
- Version: 0.1.0
- License: MIT
To install GitAccess in your self-hosted OpenWebUI instance, you can follow these steps:
- Open your OpenWebUI instance.
- Go to the Marketplace.
- Add the link to GitAccess:
https://github.com/WhyWaitServices/open-webui-gitaccess.git.
- Copy the code from the
GitAccess.pyfile. - Add the copied code to your OpenWebUI instance by creating a new tool under Workspace > Tools.
- Paste the copied code from the
GitAccess.pyfile into the large input field and assign a name and a description. - Save the tool.
- Accessing the Valves: The environment variables for the tool are set within OpenWebUI. Click the gear button when you open the tool to configure the valves.
- GITHUB_ACCESS_TOKEN: A personal access token from GitHub that has the necessary permissions to access the repository.
- GITHUB_REPO_URL: The URL of the GitHub repository, which should be specified in the format
username/repo.
- Setting UserValves: If you have activated the tool in a chat or model, you can set the UserValves using the "Controls" button (located at the top right, directly left of the profile picture). A sheet will open where you can configure the UserValves of the tool.
After installation, you can use GitAccess as follows:
- Ensure that you are correctly configured (access token and repo URL).
- Launch the tool in your OpenWebUI instance.
- Use simple prompts like:
- "What is the content of my GitHub repo?"
- "Show me the content of two files in code blocks."
The response might look like this:
The status of actions will be displayed in the user interface through status messages.
- Fetching Repository Contents: Read the structure and files of a specified GitHub repository.
- Dynamic Filters: Distinguish between directories and files to efficiently retrieve the desired data.
- Event Emitter: Real-time feedback on the progression of queries and other actions.
This project is licensed under the MIT License. For more information, please refer to the LICENSE file.
Contributions are welcome! Please open an issue or a pull request to share suggestions or propose improvements.
For questions or feedback, you can contact me at contact@example.com.
Thank you for using GitAccess!

