Open-source project
AllYourBot/hostedgpt avatar
AllYourBot/hostedgpt

HostedGPT puts several model providers behind one Rails app

An open version of ChatGPT you can host anywhere or run locally.

513 stars517 forksRubyMIT

At a glance

What is it?
HostedGPT offers a self-hosted conversation interface for multiple model accounts. Adopting it means operating the Rails app and deciding separately where models process prompts.
Who is it for?
HostedGPT fits users who need one conversation interface across providers and can operate Rails and Postgres. A single provider's interface fits users who want a managed service.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 39 days ago.
What is it written in?
Mainly Ruby, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on October 20, 2026, and from our analysis. They are not legal advice.

Editorial analysis

One Rails interface for several model accounts

HostedGPT puts conversations from several model providers behind a Ruby on Rails application that an individual or team can host. The README describes support for OpenAI, Anthropic, Google and Ollama, among others, with a search interface across conversations. Its most distinctive use is an ongoing conversation where the user wants to change the model or provider partway through. For example, someone drafting a technical note can ask a second model to explain a confusing passage without starting a separate chat in another provider's interface. That is a convenience for exploratory comparison. A controlled comparison would still need to hold the prompt and prior conversation constant, since the second model may be answering a different turn with additional context.

Compose builds a development checkout

The local setup in the [HostedGPT README](https://github.com/AllYourBot/hostedgpt#running-locally-on-your-computer) starts from a checkout and assumes Docker is running. From the repository directory, start the services with the documented command.

bash
docker compose up --build

The documented next step is to open [localhost port 3000](http://localhost:3000) and register an account. For a first conversation with a hosted model, use a provider you already have access to and supply the relevant API key. A short prompt with no sensitive input is sufficient to check whether the browser can reach Rails and whether the chosen model account can return a response. Those are two separate dependencies. A successful registration confirms access to the application, while a successful model response also depends on provider credentials and connectivity.

The Postgres volume holds local state

The repository's [Compose file](https://github.com/AllYourBot/hostedgpt/blob/main/docker-compose.yml) defines a Postgres 16 service and mounts the named volume hostedgpt_pgdata at its data directory. It identifies this Compose setup as development-only and documents individual HOSTED_DB settings in place of DATABASE_URL. Those details matter if the first evaluation becomes a deployment. The settings that bring up a local checkout provide a starting point for examining the app, and the production deployment should have its own database configuration and backup plan. The [justfile](https://github.com/AllYourBot/hostedgpt/blob/main/justfile) also defines teardown with docker compose down --volumes. Use a disposable checkout for experiments with that target because removing the database volume can remove the conversations and accounts created during the trial.

Hosting Rails sets one boundary for chat data

The Rails host is where the user reaches the application and where the Compose setup provides database storage. Selecting a hosted model involves a separate service. A team deciding where a conversation may be processed has to consider both the application host and the selected inference provider. The README points to an Ollama setup for local models and separately describes optional Brave Search and Google integrations. For an evaluation that needs local inference, start with the project's Ollama instructions and keep the optional remote integrations out of the initial scenario. If Google account access is part of the intended workflow, evaluate it separately from basic chat so that its permissions and data flows can be assessed on their own.

Choose between managing Rails and using a provider interface

A provider's own chat interface is a practical alternative when users work with one provider and want the provider to operate the application. HostedGPT asks its operator to handle the Rails service and database, but gives users a common conversation interface and lets them switch providers within a chat. API usage under a hosted provider remains attached to the credentials used for that provider. This distinction matters for a small team evaluating the app as a shared service. A local demo can show how a user moves between models, while an operational evaluation also needs to establish who maintains the service and who owns the provider accounts.

A tagged release and the current checkout can differ

The repository lists an MIT license for the application. Its recorded last push was on 2026-10-18, while the listed 0.7 release dates to 2025-09-18. A deployment based on a repository checkout therefore needs to record which revision it actually uses. The README tells local Docker users to run the build command again after pulling changes so the environment can pick up changes to dependencies, migrations and Compose configuration. For a service holding conversation history, a rehearsal on a copy of the database has a specific purpose. It lets the operator see whether the selected revision starts against existing records and whether the team can still open old conversations after the change. Record the instance revision alongside the database backup used for that rehearsal.

Editorial conclusion

HostedGPT fits users who need one conversation interface across providers and can operate Rails and Postgres. A single provider's interface fits users who want a managed service. Start with the documented Compose checkout and verify that a conversation can switch between the intended providers.

Frequently asked questions

Can HostedGPT switch models within a conversation?

The project README says users can switch providers and models during a conversation.

Where does HostedGPT run in its local Compose setup?

The README directs users to localhost port 3000 after starting Compose.

What license does HostedGPT use?

The repository lists the MIT license.

Official sources

  1. AllYourBot/hostedgpt on GitHub
  2. Issues
  3. License: MIT
  4. README
  5. Releases

Was this useful?