Sign In

@agentskit/ink

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentskit/ink

Ink terminal components and hooks for AgentsKit.

Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
949
94.87%
Maintainers
1
Weekly downloads
 
Created
Source

@agentskit/ink

stability: stable

Build terminal AI chat interfaces with the exact same API as @agentskit/react.

Why

  • No context switching — if you know @agentskit/react, you already know this; same hooks, same component names, different renderer
  • Real terminal UX — keyboard navigation, ANSI colors, and proper TTY streaming so your CLI feels native, not like a web app in a box
  • Any local or cloud model — pair with Ollama for fully offline CLI tools, or any other provider via @agentskit/adapters

Install

npm install @agentskit/ink @agentskit/adapters

Quick example

import React from 'react'
import { render } from 'ink'
import { ChatContainer, InputBar, Message, useChat } from '@agentskit/ink'
import { ollama } from '@agentskit/adapters'

function App() {
  const chat = useChat({ adapter: ollama({ model: 'llama3.1' }) })
  return (
    <ChatContainer>
      {chat.messages.map(msg => <Message key={msg.id} message={msg} />)}
      <InputBar chat={chat} />
    </ChatContainer>
  )
}

render(<App />)

Next steps

  • Use tools and memory from @agentskit/tools and @agentskit/memory in useChat the same way as in React
  • For a browser UI, swap to @agentskit/react; for a quick terminal chat without your own Ink app, run @agentskit/cli agentskit chat

Ecosystem

PackageRole
@agentskit/reactBrowser — same hooks, different renderer
@agentskit/cliInteractive chat + agentskit init
@agentskit/adaptersProviders (e.g. ollama for local models)
@agentskit/coreShared chat types and controller

Docs

Full documentation

Keywords

agentskit

FAQs

Package last updated on 15 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts