1. The gastric central pattern generator (CPG), located in the stomatogastric ganglion (STG) of the spiny lobster (Panulirus interruptus), is nonrhythmic when deprived of neuromodulatory inputs from anterior ganglia. Leaving these inputs intact in vitro can sustain a gastric rhythm but also introduces numerous, uncontrolled and largely unknown modulatory and synaptic influences that greatly complicate analysis of this CPG. 2. Here we induced gastric rhythms in the isolated STG, by superfusing a specific modulator, the muscarinic agonist, pilocarpine. Muscarinic agents sustain vigorous gastric rhythms in the isolated STG. Our aim was to analyze the pattern-generating functions of the restricted gastric circuit, free of complicating influences from other ganglia, and under specific (muscarinic) modulation. 3. We used combinations of multiple cell hyperpolarizations, photodeletions, and synaptic blockade by picrotoxin to assess the pattern-generating role of individual gastric neurons and to study the activity of subcircuits. 4. Four identified gastric neurons [lateral gastric (LG), dorsal gastric (DG), 2 electrically coupled lateral posterior gastric (2LPGs)] acted as pattern-generating cells. They showed bursting pacemaker potentials (BPPs), i.e., plateau (or driver) potentials that underlay bursts of axonal spikes and slow, interburst depolarizing potentials that underlay repetitive burst activity. LG and DG, at least, became conditional bursters, able to burst repetitively because of intrinsic oscillations. The other gastric neurons behaved mainly as follower cells and derived their rhythmic bursting from synaptic coupling to the pattern-generator cells and from their own intrinsic (but nonoscillatory) properties. 5. The pattern-generating neurons form a novel "kernel" circuit that works by the cooperative interaction of cellular properties and synaptic connectivity. 6. This study constitutes the first complete and fully consistent analysis of pattern generation in the gastric network of the isolated STG. These mechanisms pertain to muscarinic rhythms in particular but also, we suggest, to gastric rhythm generation and CPG function in general. We suggest that 1) rhythmicity normally depends on the induction of bursty membrane properties in at least some component neurons; 2) different subcircuits can produce rhythmic patterns and may be activated by different modulators; and 3) the gastric network shares several important "building blocks" with CPGs that have been analyzed in other systems. 7. Muscarinic inputs are implicated as an important gastric regulator. We compare these responses with the reported modulatory actions of the anterior pyloric modulator (AMP), an identified, putatively cholinergic input interneuron that may act via muscarinic mechanisms.