🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Coala Client

by @hubentu

How to use the coala-client CLI for chat with LLMs, MCP servers, and skills. Use when the user asks how to use coala, run coala chat, add MCP servers, import...

Versionv0.1.2
Downloads998
TERMINAL
clawhub install coala

πŸ“– About This Skill


name: coala-client description: How to use the coala-client CLI for chat with LLMs, MCP servers, and skills. Use when the user asks how to use coala, run coala chat, add MCP servers, import CWL toolsets, list or call MCP tools, or import or load skills. homepage: https://github.com/coala-info/coala_client metadata: {"clawdbot":{"emoji":"🧬","requires":{"bins":["coala-client"]},"install":[{"id":"uv","kind":"uv","package":"coala-client","bins":["coala-client"],"label":"Install coala-client (uv)"}]}}

Coala Client

Part of the coala ecosystem. CLI for chat with OpenAI-compatible LLMs (OpenAI, Gemini, Ollama) and MCP (Model Context Protocol) servers. Supports importing CWL toolsets as MCP servers, importing skills.

Config paths

  • MCP config and toolsets: ~/.config/coala/mcps/
  • - mcp_servers.json β€” server definitions - / β€” per-toolset dirs with run_mcp.py and CWL files
  • Skills: ~/.config/coala/skills/ (one subfolder per imported source)
  • Env: ~/.config/coala/env (optional; key=value for providers and MCP env)
  • Quick start

    1. Init (first time) coala init β€” creates ~/.config/coala/mcps/mcp_servers.json and env.

    2. Set API key e.g. export OPENAI_API_KEY=... or export GEMINI_API_KEY=.... Ollama needs no key.

    3. Chat coala or coala chat β€” interactive chat with MCP tools. coala ask "question" β€” single prompt with MCP.

    4. Options -p, --provider (openai|gemini|ollama|custom), -m, --model, --no-mcp.

    MCP: CWL toolsets

    No API key needed for MCP import, list, or call β€” only for chat/ask with an LLM.

  • Import (creates toolset under ~/.config/coala/mcps// and registers server):
  • coala mcp-import or alias coala mcp ... SOURCES: local .cwl files, a .zip, or http(s) URLs to a .cwl or .zip. Requires the coala package where the MCP server runs (for run_mcp.py).

  • List
  • coala mcp-list β€” list server names. coala mcp-list β€” print each tool’s schema (name, description, inputSchema).

  • Call
  • coala mcp-call . --args '' Example: coala mcp-call gene-variant.ncbi_datasets_gene --args '{"data": [{"gene": "TP53", "taxon": "human"}]}'

    Skills

  • Import (into ~/.config/coala/skills/, one subfolder per source):
  • coala skill SOURCES: GitHub tree URL (e.g. https://github.com/owner/repo/tree/main/skills), zip URL, or local zip/dir.

  • In chat
  • /skill β€” list installed skills. /skill β€” load skill from ~/.config/coala/skills// (e.g. SKILL.md) into context.

    Chat commands

  • /help, /exit, /quit, /clear
  • /tools β€” list MCP tools
  • /servers β€” list connected MCP servers
  • /skill β€” list skills; /skill β€” load a skill
  • /model β€” show model info
  • /switch β€” switch provider
  • MCP on/off

  • All off: coala --no-mcp (or coala ask "..." --no-mcp).
  • One server off: remove its entry from ~/.config/coala/mcps/mcp_servers.json.
  • On: default when --no-mcp is not used; add or restore servers in mcp_servers.json.
  • Providers and env

    Set provider via -p or env PROVIDER. Set keys and URLs per provider (e.g. OPENAI_API_KEY, GEMINI_API_KEY, OLLAMA_BASE_URL). Optional: put vars in ~/.config/coala/env. coala config β€” print current config paths and provider/model info.

    πŸ’‘ Examples

    1. Init (first time) coala init β€” creates ~/.config/coala/mcps/mcp_servers.json and env.

    2. Set API key e.g. export OPENAI_API_KEY=... or export GEMINI_API_KEY=.... Ollama needs no key.

    3. Chat coala or coala chat β€” interactive chat with MCP tools. coala ask "question" β€” single prompt with MCP.

    4. Options -p, --provider (openai|gemini|ollama|custom), -m, --model, --no-mcp.