Getting Started
Add one model by one of the three routes below, then run a prompt. The first command that needs the daemon starts it in the background; momonga daemon status shows it.
A model server on this computer
Start a local model server, such as Ollama, and ask which servers answer and which models they list. This writes nothing:
momonga models detectAdd one of the listed models by the name its server gives it. Without
--yesthe change is only shown:momonga models add --address http://127.0.0.1:11434 --model <own name> --yesAn Ollama server reports the context window and the tool support of its models, so you do not give
--window. For a server that does not report the window, or an address where no server answers, the command says so and writes nothing; give it with--window <tokens>.Check that the model is seen:
momonga models
A subscription account
Sign in in the browser.
chatgptis the provider this release ships, so the command needs no provider name:momonga auth loginA new account has no model yet, and the sign-in says what to run next.
momonga auth statusshows the saved accounts and their state.List the models the account offers, and add one by its own name:
momonga models catalog <account> momonga models add --plan chatgpt --account <account> --model <own name> --yes
In the interactive session, /login signs in and /model chooses one of the account's models. A sign-in starts only from /login or momonga auth login: the start screen takes no key while you type.
An API key
Store the key in the platform secret store under a name you choose. The value is read from the terminal and never written to a settings file:
momonga secret set <name>Add the model of the server at its address:
momonga models add --address <url> --api <api> --model <own name> --api-key-secret <name> --yes--apiis the API of a server MomongaCode does not recognise by itself:ollama,openai,anthropic, orresponses. Instead of a stored secret,--api-key-env <NAME>names an environment variable that holds the key; it must be set in the environment the daemon starts with.
A model that is paid for by use is measured only with your consent. Its first request is refused with the most requests, input tokens and output tokens the measurement can send, and with the command to run that gives the consent. The consent is kept for that model and that bound.
The first prompt
cd your-repository
momonga -p "explain what this repository does"Run momonga with no prompt to start an interactive session instead. The first interactive session in a folder asks whether you trust it. Until a folder is trusted, its own settings, and everything they could make MomongaCode run, are not loaded: momonga -p, momonga attach, and an editor through momonga acp run without them and say so in one line that names momonga trust <folder>. momonga trust --set trusted decides the current folder from a shell.