ramalama-chat(1)
β¨ ramalama-chat β¨
okay bestie, gather round β this is the ramalama-chat page from the General Commands Manual, and it's literally about chatting with an OpenAI-compatible REST API from your terminal. main character energy fr fr π
πΈ NAME πΈ
ramalama-chat β OpenAI chat with the specified REST API URL π¦
π SYNOPSIS π
ramalama chat [options] [arg...]
positional arguments:
ARGSβ overrides the default prompt, and the output is returned without entering the chatbot (unless--interactiveis specified) π
β¨ DESCRIPTION β¨
So basically, you're chatting with an OpenAI REST API. By default, if you hand it arguments or pipe stuff in via stdin, it shows you the response and then dips out (exits). π
But if you want to keep the conversation going, hit --interactive and it'll stay in an interactive chat session after it finishes processing that initial prompt. no cap π«Ά
π OPTIONS π
--api-keyβ OpenAI-compatible API key π. You can also set it with theRAMALAMA_API_KEYenvironment variable instead.--colorβ whether or not to use color in the chat π¨. Possible values are"never","always"and"auto". (default:auto)--help,-hβ shows this help message and exits π«‘--interactive,-iβ keeps you in interactive chat mode after it processes stdin or prompt arguments π¬. By default, when arguments or piped input are provided, the command exits after displaying the response. This flag lets you keep chatting interactively instead of getting abandoned mid-convo π--listβ lists the available models at an endpoint π--max-tokens=integerβ maximum number of tokens to generate. Set it to0for unlimited output (default:0). π--mcp=SERVER_URLβ MCP (Model Context Protocol) servers to use for enhanced tool calling capabilities π οΈ. You can specify it multiple times to connect to multiple MCP servers. Each server provides tools that can be automatically invoked during chat conversations. lowkey iconic--model=MODELβ model for inferencing π§ (may not be required for endpoints that only serve one model)--prefixβ prefix for the user prompt (default:π¦ >) π¦--rag=pathβ a file or directory of files to be loaded and provided as local context in the chat history π--summarize-after=Nβ automatically summarize conversation history afterNmessages to prevent context growth π. When enabled, ramalama will periodically condense older messages into a summary, keeping only recent messages and the summary. This prevents the context from growing indefinitely during long chat sessions. Set to0to disable (default:4).--temp=floatβ temperature of the response from the AI Model π‘οΈ. Lower numbers are more deterministic, higher numbers are more creative. pick your vibe bestie--url=URLβ the host to send requests to (default:http://127.0.0.1:8080) π
π§ INTERACTIVE COMMANDS π§
When you're running in interactive chat mode, these commands are available. All commands are case-insensitive (e.g., /CLEAR, /Clear, and /clear all work). π
/help,help,?β displays help information showing all available commands and their descriptions π/clearβ clears the conversation history without exiting the chat session π§Ή. This resets the context and lets you start a fresh conversation without restarting the container or connection. A confirmation message will be displayed when the history is cleared./bye,exitβ exits the chat session and closes the connection π/tool [question]β (Only available when using--mcp) manually select which MCP tool to use for a question π οΈ. Without this command, the AI automatically decides whether to use tools based on the question.Ctrl + Dβ exits the chat session (EOF signal) πͺ
π₯ EXAMPLES π₯
Communicate with the default local OpenAI REST API. (http://127.0.0.1:8080) With Podman containers. π¦
$ ramalama chat
π¦ >
Communicate with an alternative OpenAI REST API URL. With Docker containers. π
$ ramalama chat --url http://localhost:1234
π >
Send multiple lines at once
$ ramalama chat
π¦ > Hi
π¦ > tell me a funny story
π¦ > please
Send an initial prompt via stdin and continue chatting
$ echo "What is 2+2?" | ramalama chat --interactive
4
π¦ > Now multiply that by 3
12
π¦ > /bye
Clear conversation history during a chat session (commands are case-insensitive)
$ ramalama chat
π¦ > What is 2+2?
4
π¦ > /CLEAR
Conversation history cleared.
π¦ >
π SEE ALSO π
π HISTORY π
Jun 2025, Originally compiled by Dan Walsh dwalsh@redhat.com β¨mailto:dwalsh@redhat.comβ© β¨
and that's the whole page bestie, ramalama-chat(1) from the General Commands Manual β go forth and chat, you absolute icon ππ¦π
π¦ where this page comes from
- fedora 43: ramalama 0.25.0-1.fc43 Β· MIT
- fedora 44: ramalama 0.25.0-1.fc44 Β· MIT
- nixos 26.05: ramalama 0.19.0
- nixpkgs unstable: ramalama 0.25.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms