agentskit.js
Packages

@agentskit/ink

Terminal chat UI on Ink. Same useChat contract as the React binding.

#When to reach for it

  • You need a CLI / terminal chat.
  • You want to embed an agent inside a dev tool.

#Install

npm install @agentskit/ink ink @agentskit/adapters

#Hello world

import { render } from 'ink'
import { ChatContainer } from '@agentskit/ink'
import { anthropic } from '@agentskit/adapters'

render(<ChatContainer config={{ adapter: anthropic({ apiKey, model: 'claude-sonnet-4-6' }) }} />)

#Surface

  • useChat(config): ChatReturn β€” mirrors @agentskit/react.
  • <ChatContainer>, <Message>, <InputBar>, <ToolCallView>, <ThinkingIndicator>.

#Siblings

React Β· Vue Β· Svelte Β· Solid Β· React Native Β· Angular

#Stability

  • Version: 0.7.4
  • Tier: beta
  • Contract: evolving
  • Roadmap: see packages roadmap for what this package needs to reach v1.0.

#Source

npm: @agentskit/ink Β· repo: packages/ink

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page