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 that allows you to interact with large language models (LLMs) directly from your Nushell command line. It provides a consistent API for multiple LLM providers and supports the Model Context Protocol (MCP).
How to use gpt.nu?
First, install and configure cross.stream. Then, use the gpt init
command to install dependencies and select an LLM provider, API key, and model. Use the gpt
command to make requests to the LLM provider. Review conversation threads with gpt thread
and experiment with MCP servers using gpt mcp
.
Key features of gpt.nu
Chat with AI models using a 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 in Nushell scripts
Interactively querying LLMs from the command line
Experimenting with and understanding MCP servers
Integrating AI capabilities into Nushell workflows
FAQ from gpt.nu
What is cross.stream?
What is cross.stream?
cross.stream is a tool used by gpt.nu for event processing.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for interacting with tools using LLMs.
How do I install gpt.nu?
How do I install gpt.nu?
Follow the instructions in the README, starting with installing and configuring cross.stream.
How do I configure gpt.nu to use a specific LLM provider?
How do I configure gpt.nu to use a specific LLM provider?
Use the gpt init
command to select a provider, API key, and model.
How do I list available tools on an MCP server?
How do I list available tools on an MCP server?
Use the command gpt mcp tools list <server_name>
.