sugarforever

Rn AI Kit — AI skill for Claude Code

AI community

A React Native toolkit for integrating AI providers into Expo apps — with OAuth subscription support.

How to install Rn AI Kit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open sugarforever/rn-ai-kit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Rn AI Kit does

A React Native toolkit for integrating AI providers into Expo apps — with OAuth subscription support.

Alternatives in AI

  • CLI 代理 API — English 中文 一个为 CLI 提供 OpenAI/Gemini/Claude/Codex 兼容 API 接口的代理服务器 19k ★
  • TokenTracker — Local-first AI token usage & cost tracker for 31 coding tools incl 1.4k ★
  • Claw Empire — Command Your AI Agent Empire from the CEO Desk — A local-first AI agent office simulator that orchestrates CLI 1.1k ★

README

rn-ai-kit

A React Native toolkit for integrating AI providers into Expo apps — with OAuth subscription support.

Status: early development. APIs may change before 1.0.

Packages

Package Description
`@rn-ai-kit/auth` OAuth and API key management for AI provider subscriptions. Claude Pro (Anthropic) and ChatGPT Plus/Pro (OpenAI Codex) enabled by default; provider configs for Gemini, GitHub Copilot, and Google Antigravity ship in the registry but are commented out pending re-enable. PKCE + device-code flows, token refresh, configurable SecureStore namespace.
`@rn-ai-kit/chatgpt-provider` Vercel AI SDK LanguageModelV1 provider for ChatGPT subscription OAuth tokens. Routes through the ChatGPT backend API (chatgpt.com/backend-api). Supports image input and image generation via the built-in image_generation tool.
`@rn-ai-kit/sessions` On-device conversation persistence with a pluggable SessionStore interface. Ships with SqliteSessionStore (expo-sqlite) and InMemorySessionStore, plus React hooks (useSessions, useSession).

What it solves

  • Sign in to Claude Pro or ChatGPT Plus/Pro directly from a React Native app — reuses the well-known Claude Code and Codex CLI OAuth client IDs.
  • Use your ChatGPT subscription token with the Vercel AI SDK — not just the standard OpenAI API.
  • Generate images via gpt-image-2 through the Responses API's built-in image_generation tool, with photo attachments handled inline.
  • Persist multi-turn conversations on-device and rehydrate them across app restarts.
  • Works with Expo SDK 55+ and React Native's new architecture.

Quick start

npm install @rn-ai-kit/auth @rn-ai-kit/chatgpt-provider @rn-ai-kit/sessions ai

Auth — Claude OAuth is a one-liner:

import { AuthManager, SecureStoreBackend } from '@rn-ai-kit/auth';

// Pass an app-specific namespace so your credentials don't collide with