Skip to content

Nika · repeatable work, saved as a file

Say it once.Keep it as a file

Nika is an open-source workflow language and engine that automates work on your computer. Combine tools, code and optional AI calls or agents in one readable, reusable file.

Your AI assistant can write the steps in a .nika file. Nika checks and runs the file.

Keep the file. Change the input and run the job again.

See who does what

Install the program · paste this in Terminal

❯curl -LsSf https://nika.sh/install.sh | sh

macOS and Linux · v0.125.2 · Setup guide

Engine built in RustNative execution. Parallel steps.

What does Nika actually do?

1Ask your assistant

Describe a job to a connected AI assistant.

Done. I saved the job as a file.

The instructions are saved for next time.

2Keep the .nika file

A text file: the steps, tools and limits.

    3Run it with Nika

    Nika checks it, then carries out the steps.

    PLANWaiting

      Waiting for file

      • Checks it first
      • Runs each step
      • Keeps a record
      Illustrated run

      4You get the result

      Three versions, saved together in one file.

      Reuse in this example

      Three drafts per run. The same saved instructions.

      • 1text file per workflow. You can read it, share it and keep it in Git.
      • 0Nika accounts. It runs on your computer. AI services may need their own account.
      • 17AI providers. 12 in the cloud, 5 on your own machine. One line to change.
      • 30built-in tools. Read, write, fetch, filter, chart. Included with Nika.
      The example is real: ships with Nika, and its steps and limits are read from it by nika check 0.124.4.See it step by step

      Why keep the job in a file?

      One brief. A lot of moving parts. Keep the handoffs in a file.

      A Monday brief needs numbers, team updates and market news. An AI agent can direct the work as it goes. With Nika, the file already says how the steps fit together.

      Without Nika

      The same job · directed as it goesSkip to With Nika

      WHEN THE HANDOFFS GET MESSY · an illustrated scenario, not a recorded run

      The work comes back for another pass.

      An agent, Python files and automations each hold part of the job. In this mixed setup, the input needs checking and context gets left behind. The agent has to reconnect the pieces.

      ONE POSSIBLE MIXED SETUP
      n8nMakeZapier
      totals.pyfix_format.pybrief_final_v2.py
      1. AI choosesthe next action
      2. Action runsa tool, code or AI work
      3. AI reads the resultand continues the loop

      MODEL USAGE · ILLUSTRATED

      Context in. Tokens used.
      Paid model calls can add cost.

      The returns mean more attention and model exchanges. These tools can also run without AI; this illustrates the handoffs in one mixed setup, not a platform benchmark or a bill.

      Some cards and loose files deliberately overlap. On a large screen, drag any card, file or sticky note directly to pull the pile apart. With a card or note focused, press Space or Enter to grab, use the arrow keys to move, and press Space or Enter to drop. Escape cancels. Shift moves farther. The eight numbered actions stay the same; the loose pieces are handoff fragments, not additional executed steps.

      1AI directsRead the KPI fileWhich export fed this total?ceo-kpis.csv
      2AI directsCalculate the revenueTotal returned. Input still to confirm.sum_revenue.py
      3AI directsRead team updatesRequests the log; reads what shipped.git log --since=1.week
      4AI directsCollect market newsNews found. Context not attached.sources → notes
      5AI directsWrite the briefNews missing. Send the context again.numbers + commits + news
      6AI directsGet today’s dateRequests the date for the output filename.date → filename
      7AI directsSave the briefLatest reply or the saved copy?briefs/monday.md
      8AI directsShare if enabledHeld until someone reviews the draft.optional · #founders
      CONFIGn8nMatch the inputwebhook.json → totals.pyWhich field holds revenue?
      MAPPINGMakeAttach the resultmodule.output → briefDoes this include the news?
      TRIGGERzapierFind the right runrun_042 → export.csvIs this the same export?
      PYTHONWhich helper was used?totals.pyColumn renamed since last run.
      PYTHONAnother format fixfix_format.pyRun again after editing.
      PYTHONFinal… or final v2?brief_final_v2.pyCompare with the saved copy.
      PAYLOADFields to reconnect{"amount": "…"}Expected revenue_total?
      TERMINALThe helper stoppedKeyError: revenueCheck the column name.

      Which export is latest?

      n8n Match the fields.

      News is missing.

      Make Attach this result.

      Which total is right?

      Zapier Which run is this?

      Chat or saved copy?

      Review first.

      With Nika

      The same job · declared in a file

      THE HANDOFFS ARE IN THE FILE · 10 declared steps in this example

      Write the handoffs once. Run the method again.

      Tools read, calculate and save directly. The model writes the brief. Next time, the same file still defines how the parts fit together.

      Less model orchestration
      1 AI step
      The model writes the brief. Routine calls run directly.
      Less waiting between steps
      Up to 4 together
      Independent work can run while other steps are busy.
      Less setup on the next run
      1 saved file
      Keep the method. Give it new inputs.

      From the Monday-brief file, not a savings benchmark. You approve before it starts; sharing is off by default. Review new results. Model and tool charges can still apply.

      One reusable file · your steps, tools and limitsceo-monday-brief.nika

      You approveTools gather & calculateAI writes the briefSave the brief

      Keep the handoffs explicit. Tools calculate and pass results; the file keeps the method. You still review the inputs and the brief.

      What can I use it for?

      Jobs you repeat. Pick one and watch the file do it.

      Data reports, research, document translation, support and content: seven examples that ship with Nika. Follow the inputs, the connected steps and the outputs. Some use AI; others use only tools and code.

      Pick a job

      You

      Built into Nika ·

      for developers
      nika check · clean Open ceo-monday-brief.nika
      Steps and limits are read from each file by nika check 0.124.4.Browse every example

      What do you get back?

      Get more from repeat work.
      See where the effort pays back.

      The first run takes preparation. Later runs can reuse it: fewer routine model decisions, less waiting and fewer handoffs to manage. Judge the return across the work you repeat, including the time spent setting it up and keeping it working.

      See when the setup pays back
      1–3 of 6

      Start with a job that comes back.The inputs change; most of the method stays useful.

      Count the whole effort.Include setup, upkeep and reviewing each result.

      When would the setup pay back?

      Use your own estimates of hands-on time. Include reviewing and correcting each run in both per-run values. All five time and frequency fields are required; enter 0 where there is no work.

      Your job, at a constant pace

      Same pace and time per run throughout.

      Workflow upkeep only. Exclude checks and corrections already counted per run.

      Over 3 months, after setup and upkeep

      Enter your five estimates to compare the total hands-on time.

      Your assumptions, not a Nika benchmark. Includes setup and recurring upkeep; excludes unattended waiting and tool/model charges. One-off or constantly changing jobs may not repay setup. This compares personal hands-on time, not overall financial ROI.

      Do I have to learn a language?

      Your assistant drafts the file. Nika checks and runs it.

      Describe the job to a connected assistant such as Claude Code or Codex, or start in Nika’s terminal Session. Review and edit the plain-text file. Nika checks its steps and permissions, then runs the job when you ask.

      Why not let an AI agent do the whole job?

      Let code do the routine work. Call an AI for the parts that need it.

      A model can decide the next action as it works. A Nika file can keep the routine parts as code: reading, fetching, filtering and saving. It calls an AI only in the steps that need one, and can put an agent inside a step when the work needs judgment.

      Explore token and API cost assumptions

      Hosted-price illustration · per run

      See where the model spend goes.

      Editable assumptions

      Same AI work for the result. Assumed routing tokens are added to the model-led route.

      Model-led routingresult work + routing

      Assumed model tokens
      —
      Estimated API spend
      —at the assumed rates

      Nika filesame result work

      Assumed model tokens
      —
      Estimated API spend
      —at the assumed rates

      Adjust this illustration
      Same result work · both routes

      Totals across all result-model calls, including pages, reviews and agent turns.

      Assumed extra model routing

      Starter assumption: one routing decision per direct task on this path. A collection counts once; human approval and agents’ own tool turns are excluded.

      Same assumed API prices · USD per 1M tokens

      Sample rates for a hosted model. Enter your own rates; zero is allowed.

      Starter run: successful, approvals granted and data available. Default-off sends stay off; other displayed conditions are met. A collection counts as one assumed routing decision here. Shared model totals cover every page, review, turn and retry; parallel caps do not multiply them. Rates and routing tokens apply across examples; result totals and decision counts stay with each example.

      Illustrative hosted-API prices; the files default to local Ollama. Shared totals include all pages and agent turns. Compute, authoring and tool/service costs are separate.

      Plan order, not a time scale. Tasks inside a group can run together when their conditions allow; the next group starts when that group finishes. An agent can group tool calls too. Counts describe declared steps, not model requests or a speed benchmark.

      Run a tool.
      No AI required.

      Call tools directly to read a file, fetch a page, filter rows or draw a chart. Nika carries out the declared call without a model choosing it. Tools can still have their own charges or use AI internally.

      Sales chart is a checked example. Compute and service costs remain separate.

      Keep the method.
      Run work together.

      Save the method once. The file keeps the order, conditions and retry rules for later runs. In Monday brief, news, Git activity, the CSV file and today’s date can run together after your explicit approval.

      These are planned groups. Conditions decide which tasks actually run.

      Bound the output.
      See the estimate.

      Set limits beside model steps. Before a run, nika check reads those limits and estimates model spend when a price is known. Unpriced work stays marked unpriced. An output ceiling is not consumed tokens or a final bill.

      Input tokens, retries and agent turns can add model work.

      Use an agent.
      Keep its bounds.

      Give one step an agent. In Code review, each file reviewer can read files and finish its answer, within declared tool, turn and token limits. Other tools, code and model steps still follow the saved workflow.

      The turn and total-token limits apply to each file reviewer.

      See where these facts come from

      These facts come from the example files and their Nika 0.124.4 checks. They describe declared plans and configured limits, not measured usage.

      Direct tools: Sales chart

      Captured check output for csv-chart-report.nika. Compute and service costs remain separate.

      
                

      Parallel work: Monday brief

      Output limits: three examples

      Output ceilings do not include input tokens. Retries, agent turns and tool or service charges can add work or cost.

      Agent bounds: Code review

      What if the file is wrong?

      You stay in control. Nika reads the whole file before it runs a single step.

      The check makes no model call. Inspect the declared plan, permissions and available model-cost estimates before running the file.

      A woman considers a move while holding a chess piece over a board outdoors.

      The file is the plan

      Read the steps.
      See the boundaries.

      social-repurpose.nika · file permissions

      permits:
        tools: ["nika:read", "nika:write"]
        fs:
          read: ["examples/fixtures/launch-post.md"]
          write: ["out/social-bundle.md"]

      The file names what it may read and write. You can inspect those permissions before running it.

      Explore the checked examples

      Catch broken steps before they run.

      A misspelled step or tool is refused before anything runs, with the line and the fix.

      NIKA-DAG-002 · task `judge` depends on `dif`, which does not exist — did you mean `diff`?

      Set what the file may access.

      The file lists every program, path and host it may use. A step that reaches past the list is refused.

      Check estimated model costs first.

      When a model price is known, the check estimates a ceiling from its list price and output limits. A run refuses a budget below that ceiling. Unpriced work remains unpriced.

      The figures are the example in the engine README. Prices are catalog estimates, not invoices.

      Add a pause for your approval.

      A step can wait for a person. At your terminal it asks. In CI, where nobody can answer, the run pauses and prints the one line that resumes it.

      What does the workflow language include?

      One language for the whole job. Tools, code and AI, connected in a file.

      A workflow is a job written as connected steps. The language defines what each step receives, what it does and how the next step uses its result.

      Choose a supported model12 cloud providers and 5 that run on your own machine. Changing model is one line.

      Data, services and media30 built-in tools read and write files, fetch web data, transform and validate records, draw charts, and work with images and speech. Some call paid services.

      Four kinds of stepAsk a model, run a local command, call a tool or another workflow, or let an agent use tools over several turns.

      Choose a path or run steps togetherPass results between steps, follow conditions, or process a list with a limit on how many items run at once. Set timeouts, retries and recovery rules.

      Reuse a workflow inside anotherCall a local workflow as one step. Give it named inputs and use its outputs in a larger job, within the parent’s permissions.

      Checks, limits and a recordDeclare file, network and tool access. Add approval gates and model limits, inspect cost estimates and keep a verifiable record of each run.

      And without an assistant?

      Say it to Nika directly. From one sentence to a run you can verify.

      a real session · nika 0.124.4

      you · one sentence++++
      nika › Read ./data/orders.csv, keep only the rows whose status is paid, and write them to ./out/paid.csv.
      nika · the proposal++++
      ✓ recorded 3 requirements
      Nika proposes `compiled-workflow.nika`:
        1. read_source · reads a file
        …
        8. write_output · writes a file
      Nothing has run yet · …
      check · these bytes++++
      check of these bytes · `compiled-workflow.nika` · clean ✔
      when it runs++++
      · reads ./data/orders.csv
      · writes ./out/paid.csv
      · tools nika:assert · nika:convert · nika:jq · nika:read · nika:write
      · model output estimate · $0 · …
      run · ceiling $0.25++++
      ok read_source … 3ms
      ok parse_source … 0ms
      ok source_columns … 3ms
      …
      ok write_output … 2ms
      Done · … · 14 ms · 8 tasks ran
      out/paid.csv · 92 B++++
      order_id,customer,status,amount
      1001,Juniper Books,paid,18.00
      1003,Linden Studio,paid,13.50
      cost · no model usage recorded
      proof · the chain++++
      chain · OK — 36 events · chain intact · head 87e806c8…f3b1
      boundary · 10 permit check(s) · 10 allowed · 0 denied
      written · ./out/paid.csv · 92 B · sha256 7cac63e6…89db
      what it does not prove++++
      seal · UNSEALED — … the run was not signed …
      does not prove · that the content is right (read it) · …
      `nika trace verify <trace>` re-judges the chain

      Every line was printed by nika 0.124.4 in an empty folder: no account, no API key. A shortened passage is marked with …

      Do the same session yourself

      In your terminal

      Three commands. Check a file, run it, then verify the record it left.

      With your assistant

      It drafts the file. Nika checks its structure. Connect Nika to the AI assistant you already use.

      In your pull requests

      Check workflow changes before running them. Add Nika’s check to your pull requests and review the verdict beside the file.

      Open source, from the engine to the language. The engine is AGPL-3.0-or-later and the language specification is Apache-2.0. Releases, known limits and issues are public.

      Can my own app run a file?

      Yes, in one call. The SDK brings the engine with it.

      For TypeScript app developers: run a file from your code, follow its progress and verify its record. The SDK includes the engine. You do not need the SDK to use Nika with an assistant or in Terminal.

      published quickstart · mock AI

      ❯ node demo.mts

      What the run reports, as it happens

        What your code gets back

        result.outputs.greeting

        receipt verified

        • The Rust engine comes in the package. npm installs the engine built for your machine, on macOS and Linux. Nothing global, nothing to start.

        • A failed run is a result. A file Nika refuses throws before anything starts. A run that fails or pauses comes back as data you read.

        • Or reach a server. The same SDK talks to nika serve, where a run is a durable job with its events and its files.

        Before you start

        How does Nika
        actually work?

        THE FIELD GUIDE01—09

        01THE SHORT ANSWER

        What exactly is Nika?

        Nika runs the job.
        You keep the file.

        Nika is an open-source workflow language and its execution engine. The language describes a job in a readable .nika file; the engine checks that file and runs its steps. Keep the instructions, change the inputs and run the job again.

        01 / WRITEYour assistant02 / KEEPThe .nika file03 / RUNNika04 / GETYour result

        02THE AI PART

        Does every step need AI?

        No. Commands and tools can run directly. Use a model to understand, generate or structure information, or an agent to use tools over several turns. You choose the models. The engine runs where you install it; a cloud service receives the data its step sends.

        03WRITING THE FILE

        Do I have to write code?

        You can write and edit the file yourself, ask a connected assistant such as Claude Code or Codex, or describe the job in Nika’s terminal Session. Review the proposed workflow before running it. The saved file remains yours to read and change.

        04INSIDE THE FILE

        What is inside a .nika file?

        Named inputs and outputs, tasks, data connections, conditions, model choices and permissions. You can declare data shapes, process lists, retry failures and call another local workflow. The file uses YAML, a readable text format you can review in Git.

        05YOUR SETUP

        What do I need to start?

        A Mac or Linux computer, Nika installed, and a .nika file to run. For AI steps, connect your own model or provider. To have an assistant write the file, connect it to Nika once. Start with the setup guide.

        06THE COST

        Is it free? Do I need a Nika account?

        Nika is open source and runs on your computer without a Nika account. AI providers and external services may charge for their work and require their own account or access key. You choose those services.

        07YOUR CONNECTIONS

        Can it connect to the services I use?

        Built-in tools handle files, data, web requests, charts, images and speech. CLI workflows can also call configured MCP tools. HTTP requests and local commands provide other connections. Supply the permissions and access credentials each service needs; there is no automatic connection to every app.

        08THE LIMITS

        Does a passed check mean the answer is right?

        The check inspects structure, types, dependencies and permissions, and estimates known model costs. A run record can be verified for integrity. Neither check proves that an AI answer is true or the result meets your goal; review the output.

        09RUNNING THE FILE

        Where can I run a workflow?

        Run files from the terminal, CI or a TypeScript application. The SDK bundles the engine; an authenticated Nika server is optional. Recurring jobs need configured schedules and a running service or installed system scheduler. Nika 0.125.2 supports macOS and Linux; check the known limits for your route.

        Try your first workflow ↗