Repository navigation
Connect Your Own AI
In the browser and on Android, Formamorph starts on the Demo AI. It is a small free model, and it is there so you can try the app with no setup. The desktop app starts on its Built-In Engine instead.
The AI writes everything you read. A stronger model gives you sharper narration, a better memory of your story, and entities that act the same from turn to turn. Nothing else changes the experience as much.
Every route ends in the same place: Settings โ Endpoints โ Text. The Endpoints tab shows in Simple and Advanced mode.
- Download LM Studio from lmstudio.ai and install it.
- Open the Discover tab and download a model.
- Open the Developer tab.
- In the server settings, turn on Enable CORS. Your browser blocks the connection without it.
- Turn on the Start server switch.
- Load your model with the model loader. The Developer tab shows the server address, such as
http://localhost:1234. - In Formamorph, open Settings โ Endpoints โ Text.
- In the Preset list, select Add New Presetโฆ.
- Type a name in New Preset.
- Select Save.
- Paste the server address into Endpoint URL.
- Leave API Token empty.
- Type the model identifier that LM Studio shows into Model Name.
- Download Ollama from ollama.com/download and install it.
- Download a model:
ollama pull <model>. Use a model name from the Ollama library. - Set the environment variable
OLLAMA_ORIGINSto*. Your browser blocks the connection without it. See OLLAMA_ORIGINS on Each System. - In Formamorph, open Settings โ Endpoints โ Text.
- In the Preset list, select Add New Presetโฆ.
- Type a name in New Preset.
- Select Save.
- Type
http://localhost:11434into Endpoint URL. - Leave API Token empty.
- Type the model's name into Model Name, exactly as
ollama lslists it.
- Make an account with a service that offers an OpenAI-compatible chat-completions endpoint.
- Get an API token from the service. Some services call it an API key.
- Open Settings โ Endpoints โ Text.
- In the Preset list, select Add New Presetโฆ.
- Type a name in New Preset.
- Select Save.
- Paste the service's chat-completions URL into Endpoint URL. It usually ends in
/v1/chat/completions. - Paste your token into API Token.
- Type the identifier of the model you want into Model Name.
- Get the desktop app from formamorph.ai and install it.
- Open Settings โ Endpoints โ Text.
- In the Preset list, select Built-In Engine.
- Select Manage Modelsโฆ. The Local model dialog opens.
- Open Recommended. It groups models by the GPU memory they need, and starts on the group for your GPU.
- Select Download on a model.
With Auto-Load on, the default, the model loads when its download finishes. With it off, select Load on the model.
- Make your server accept connections from your network. In LM Studio, turn on Serve on Local Network. In Ollama, set
OLLAMA_HOSTto0.0.0.0:11434. - On the other device, open Settings โ Endpoints โ Text.
- Type your PC's network address into Endpoint URL, such as
http://192.168.โฆ:1234.
In the browser, Chrome may block a public page from reaching your own network. The Android app has no such block.
| Route | You need | Best when |
|---|---|---|
| ๐ฅ๏ธ Run a local server | A PC with a capable GPU, plus LM Studio or Ollama | You want to play in the browser or on mobile, with the model on your own PC |
| โ๏ธ Use a hosted API service | An account with a service, and its API token | Your hardware can't run a good model |
| ๐ฆ Use the desktop app | A PC with a capable GPU | You want the fewest installs |
- Pick a model tuned for roleplay or conversation.
- As a rough guide, use 12B parameters or larger.
- Past that, use the largest model that your hardware runs well. A model that does not fit in your GPU's memory runs slowly.
| Field | What goes in it |
|---|---|
| Preset | The saved endpoint you use. Add New Presetโฆ makes a new one. |
| Endpoint URL | The server address. A bare address such as http://localhost:1234, or one that ends in /v1, gets /v1/chat/completions added. The line under the field shows the full URL. Any other path stays as you typed it. |
| API Token | The service's token. Leave it empty for a local server. |
| Model Name | The model identifier, exactly as the server shows it. |
๐ก If the connection fails, select Trouble Connecting? under Endpoint URL. It opens a checklist of the usual causes.
How you set the variable depends on your system:
| System | How |
|---|---|
| Windows | Quit Ollama, edit the environment variables for your account, add OLLAMA_ORIGINS, then start Ollama again |
| macOS | Run launchctl setenv OLLAMA_ORIGINS "*", then restart the Ollama app |
| Linux | Run systemctl edit ollama.service, add Environment="OLLAMA_ORIGINS=*" under [Service], then run systemctl daemon-reload and systemctl restart ollama
|
The desktop app has the AI engine built in, so there is nothing extra to install.
โ ๏ธ The model still runs on your hardware. The desktop app removes the separate server install. It does not change which models your PC can run. That depends on your GPU and its memory.
The Local model dialog has three views: Installed, Recommended and Options. Recommended groups models as โค4 GB, โค8 GB, โค16 GB and No Limit.
The desktop app also connects to a local server or a hosted service. The steps are the same as above. The browser and Android builds have no Built-In Engine.
On the desktop app, a Set up your AI dialog opens when the engine has no model to run. It also opens when you enter a world and the AI can't be reached.
| Part | What it does |
|---|---|
| Detected line | Shows your GPU, its memory and its class |
| Recommended model | One model that fits your GPU, with a download button |
| Show all models | Lists every model under Best for Your GPU, Also Fits and Too Big for Your GPU |
| Open Settings | Opens Settings โ Endpoints, to use a server or a service instead |
| Later | Closes the dialog. You can set this up any time in Settings โ Endpoints. |
When the model is ready, the title reads You're ready, and Start Playing closes it. For a custom endpoint that fails, Try again checks it again.
Playing
- ๐ Connect Your Own AI
- ๐ฑ Install on Android
- ๐ Library
- ๐ง Avatars
- ๐ช Starting a Game
- ๐ฎ How to Play
- โ Formaquestion
- ๐พ Saves and Backup
- ๐ง Story Memory
- ๐ญ Entities in Game
- ๐ชช Personas
- ๐ Community Creations
- โ๏ธ Settings
Reference
- ๐ค Glossary
- โ๏ธ Text Formatting
- ๐ ๏ธ World Editor
- ๐งช Test Bench
- ๐ชช Personas for Authors
- ๐ World Format
- ๐งฎ Stat Code Guide
- ๐ Linked Content
Project