Skip to content

juspay/AI

Repository files navigation

AI

One-click coding agents with Juspay's LLM configuration.

Currently supports OpenCode only. Skills are sourced from:

OpenCode demo: variant selector, oneclick, and hello world prompt

OpenCode running in the terminal with Juspay's LLM (just demo to regenerate)

Prerequisites

Quick Start

nix run github:juspay/AI

This launches an interactive selector. Or run a specific variant directly:

Variant Command Description
opencode-juspay-oneclick nix run github:juspay/AI#opencode-juspay-oneclick Juspay config and skills bundled
opencode-oneclick nix run github:juspay/AI#opencode-oneclick Skills bundled, bring your own provider (e.g. Claude Max)
opencode-juspay-editable nix run github:juspay/AI#opencode-juspay-editable Creates editable Juspay config at ~/.config/opencode/opencode.json (customize)
opencode nix run github:juspay/AI#opencode Plain OpenCode, no config

The opencode-juspay-* variants need a JUSPAY_API_KEY. If the env var isn't set, the wrapper prompts for it interactively — handy on fresh VMs or containers. Export the var in your shell to skip the prompt on subsequent runs.

Daily Updates

This flake's flake.lock is auto-updated daily via CI, so you always get the latest OpenCode release and skills. If pinning via flake.lock in your own flake, run nix flake update AI to pull the latest.

Tips

Web UI

OpenCode can run as a web application in your browser:

nix run github:juspay/AI#opencode -- web

This starts a local server and opens OpenCode in your default browser. Sessions are shared between the web UI and CLI, so you can switch between them seamlessly. You can also specify a port or make it accessible on your network with --port 4096 --hostname 127.0.0.1.

See the OpenCode Web docs for more.

Coding Agent Setup

This repo uses APM for coding agent configuration. .claude/ and .opencode/ are vendored — committed to git and kept in sync by a CI check (apm-sync workflow).

just agent                # launch agent (default: claude)
just agent::apm-vendor    # regenerate vendored .claude/ and .opencode/
just agent::update        # update apm deps to latest, then re-vendor

Override the agent with AI_AGENT:

AI_AGENT=opencode just agent
AI_AGENT='claude --dangerously-skip-permissions' just agent

Repo Structure

├── .claude/                  # Vendored APM output for Claude Code
├── .opencode/                # Vendored APM output for OpenCode
├── agent/                    # Justfile recipes for apm and agent launch
├── coding-agents/
│   └── opencode/             # OpenCode packages, settings, tests
├── demo/                     # Demo screencast infrastructure

Skills are vendored via APM into .claude/ and .opencode/ from the sources listed above.

Related

About

One-click AI agent for Juspay

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors