gpt.nu
by cablehead
gpt.nu is a Nushell module that enables direct interaction with large language models (LLMs) from your command line. It provides a simple interface supporting multiple LLM providers and the Model Context Protocol (MCP).
Last updated: N/A
What is gpt.nu?
gpt.nu is a Nushell module for interacting with large language models (LLMs) directly from the Nushell command line. It supports multiple LLM providers and the Model Context Protocol (MCP).
How to use gpt.nu?
First, install and configure cross.stream. Then, use use gpt
to load the module. Use gpt init
to install dependencies and configure your LLM provider. Use gpt
to make requests to the LLM. Use gpt thread
to review the conversation thread. Use gpt mcp
to interact with Model Context Protocol servers.
Key features of gpt.nu
Chat with AI models using one consistent API
Maintain conversation context across sessions
Integrate with MCP servers to extend tool capabilities
Receive streamed AI responses directly in your shell
Use cases of gpt.nu
Automating tasks with LLMs from the command line
Building AI-powered Nushell scripts
Experimenting with and understanding MCP servers
Integrating LLMs into existing Nushell workflows
FAQ from gpt.nu
What is cross.stream?
What is cross.stream?
cross.stream is a dependency that gpt.nu uses for event processing.
How do I install gpt.nu?
How do I install gpt.nu?
First install and configure cross.stream, then use use gpt
in your Nushell script.
How do I configure my LLM provider?
How do I configure my LLM provider?
Use the gpt init
command to select an LLM provider, API key, and model.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for interacting with tools using LLMs.
How do I register an MCP server?
How do I register an MCP server?
Use the command gpt mcp register <name> <command>
.